• I finally got the next/previous page links to show up after finding some tips on this forum about how to get it working. And, I’ve seen this problem in other threads where you go to a next or previous page but none of the solutions I see work and I still see the same posts on all pages.

    I’m using the $paged thing in my query_posts() as someone suggested like this:

    <?php
    if (is_page()) {
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    query_posts(“category_name=hpay-podcast&paged=$paged”);} ?>

    <?php $posts = get_posts(‘category_name=hpay-podcast&showposts=6’);
    foreach ($posts as $post) : start_wp(); ?>

    and then at the bottom of my template page I have:

    <div class=”alignleft”><?php posts_nav_link(”,”,’« PREVIOUS PAGE’) ?></div>
    <div class=”alignright”><?php posts_nav_link(”,’NEXT PAGE »’,”) ?></div>

    Is there something I’m doing wrong here?

Viewing 1 replies (of 1 total)
  • Thread Starter peteraltenberg

    (@peteraltenberg)

    Any help out there? I’ve been searching through the forum and hacking away and no luck. Or do I just have to live with having all posts on one page no matter how long it gets?

Viewing 1 replies (of 1 total)
  • The topic ‘Next/Previous page links always show same posts’ is closed to new replies.