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

  1. luciandavidescu
    Posted 5 years ago #

    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>','<small>ARTICOLE MAI NOI</small>','<small>ARTICOLE MAI VECHI</small>'); ?></li>
    <?php } ?>
  2. luciandavidescu
    Posted 5 years ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic