• Resolved eight20

    (@eight20)


    So i’ve done about all of the searching I can do on this subject. I’ve created a new blog, where the main index is not the blog, but an online store. The blog is based off a template page, using the loop to show post content. As you can see from my code, I am excluding 1 category from that. For some reason, when I click “Older Posts,” the URL will go to /blog/page/2/, but the same posts from page 1 will show up. I’ve tried all of the different pagination options I can find using other people’s problems, but cannot fix my own. The site is theMacaronner.

    Any help on this subject would be greatly appreciated.

    <?php if ( is_home() ) {
    query_posts($query_string . '&cat=-23');
    }
    ?>
Viewing 1 replies (of 1 total)
  • Thread Starter eight20

    (@eight20)

    Did one more quick search to find my answer. Thanks to vtxyzzy for the answer.

    <?php if ( is_home() ) {
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       query_posts('cat=-23&paged=' . $paged);
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘next_posts_link not going to older posts’ is closed to new replies.