WordPress.org

Support

Support » How-To and Troubleshooting » Bug in wp 3.05? Navigation previous/next post links to wrong posts

Bug in wp 3.05? Navigation previous/next post links to wrong posts

  • Since installing wp 3.05, page navigation (previous_post_link & next_post_link) no longer points to the respective posts but always to the same two posts, adiacent to an article published more than one year ago.

    The site is: http://www.riscograma.ro

    My navigation code is:

    <?php if (is_single()) { ?>
    
    <?php next_post_link('
    <li><small>ARTICOLUL URMÄ‚TOR</small>%link</li>
    '); ?>
    
    <?php previous_post_link('
    <li><small>ARTICOLUL ANTERIOR</small>%link</li>
    '); ?>
    
    <?php } else {?>
    
    <li><?php posts_nav_link('
    </li>
    <li>','<small>ARTICOLE MAI NOI</small>','<small>ARTICOLE MAI VECHI</small>'); ?></li>
    <?php } ?>
Viewing 1 replies (of 1 total)
  • Is it because it’s outside the loop? It worked before…
    Anyway, i moved endwhile after the sidebar and still nothing.
    OTOH, I put another instance inside the single page and it does work…

Viewing 1 replies (of 1 total)
  • The topic ‘Bug in wp 3.05? Navigation previous/next post links to wrong posts’ is closed to new replies.