Support » Plugins » Recent Post and in_category function

  • Okay so I have my index page setup with three loops. All is working fine as far as that goes. I’m using Kitten’s show category plugn so the code for the first loop is:
    <div id=”content”>
    <?php show_category_posts(‘1′,”,’DESC’,”,’1′); ?>
    <?php if ($scp_posts) : foreach ($scp_posts as $post) : start_wp(); ?>
    <div class=”post”>
    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h3>
    <div class=”meta”><?php _e(“Filed under:”); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
    <div class=”storycontent”>
    <?php the_content(); ?>
    <div class=”feedback”>
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
    <?php trackback_rdf(); ?>
    <?php include(ABSPATH . ‘wp-comments.php’); ?>
    <?php endforeach; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>
    Below i’m using another loop to list recent posts so someone could read other posts from the same category. The porblem i’m having is since the plugin puts limits on what can be shown and forces the latest post from category one when I click on a permalink for a post fromt he same category it just defaults back to the latest post in single page format.
    It works just fine if I take out the plugin code and put back in
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    But then it shows post from every category in the first loop.
    I’m sure the fix for this is simple and I’m just not seeing it. Does anyone have any suggestions?
    The site is is you want to see what i’m talking about, its still in progress, be gentle.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Recent Post and in_category function’ is closed to new replies.