WordPress.org

Ready to get started?Download WordPress

Forums

Older posts Page 2 showing posts, Page 3 is not (2 posts)

  1. tydende
    Member
    Posted 5 years ago #

    Hello,

    I'm running wordpress inside Joomla http://www.ediblecommunities.com/frontrange/
    and if you click on older posts, Page 2 displays the desired 20 posts, but Page 3 shows nothing.

    There are more posts to be displayed on page 3, so not a matter of how many posts there are.


    Here's the loop code

    <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("cat=6&showposts=20&paged=$page");
    ?>

    <?php if (have_posts()) : while (have_posts()) : the_post();
    if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>

    And the navigation code

    <div class="navigation">
    <div class="alignleft"><b><?php next_posts_link('« Older Entries') ?></b></div>
    <div class="alignright" style="margin-right:30px;"><b><?php previous_posts_link('Newer Entries »') ?></b></div>
    </div>

    They seem pretty standard. Any ideas?

  2. tydende
    Member
    Posted 5 years ago #

    Or does anyone have a link to a solution? I've searched the forums and haven't found a situation where the older posts worked for the second page but not the third.

Topic Closed

This topic has been closed to new replies.

About this Topic