• I only want to display the most recent entry on my index page with with a list of ten older posts. Generating that list with a correct comment count for each is escaping me. The code is as follows:

    <? $older_posts = get_posts('numberposts=9&offset=1&category=1');
    foreach($older_posts as $post) : ?>

    <li><a><? php the_title(); ?></a> - <?php comments_number('no responses','one response','% responses'); ?></li>
    <?php endforeach; ?>

    Simple enough. The problem is that each entry in my Older Posts list shows the same number of comments as the one entry I’m displaying in full and not the comment count for the older post. What am I missing?

The topic ‘Older Posts and Comment Counts’ is closed to new replies.