Support » How-To and Troubleshooting » [HELP] Next/Prev show the same post

[HELP] Next/Prev show the same post

  • zerogradinord


    Hi guys,
    I’ve a big problem with my magazine on-line (http://www.zerogradinord.net), created with WP 2.6.2.
    When you clik in the bottom of the page (any kind of page) over link past or recent post, WP always charge the page with the last post but he think to be in the right page. Actually, if you go over the link past or recent you see go to page 3,4,5 etc etc. But, if you click on it, you always see the same page with the last post…
    I’ve partially solve the problem. With the code under, founded in one topic and now my home page (http://www.zerogradinord.net) works properly.

    if (is_home()) {
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;

    But the category page (like http://www.zerogradinord.net/americas-cup-news/), with these code doesn’t work. With standard loop string like <?php query_posts(‘cat=4,-865’); ?> it always charge the same post.
    Someone can help me?


Viewing 3 replies - 1 through 3 (of 3 total)
  • query_posts always breaks the prev/next navigation.
    Just search!

    Look for Otto42’s posts: he has explained it several times AND gave working examples.

    Also: don’t ever try to double post! (they get deleted quickly)



    Many thanks Moshu, but I try to found some solution in Otto42 post: I’m not an expert…
    Can you give to me a link of a good post to solve my problem?
    Many thanks.


    http://wordpress.org/support/topic/185209?replies=9 for example.

    And for the record: in a Category_Template you don’t need to use any query_posts thing. WP knows better than that and clicking on a category, it will show only posts from that category.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[HELP] Next/Prev show the same post’ is closed to new replies.