Forums

[resolved] next_post_link & previous_post_link not showing up after upgrade to 2.1 (9 posts)

  1. bedspring
    Member
    Posted 5 years ago #

    I upgraded to 2.1, and I just noticed the my next_post_link and previous_post_link are not showing up on any of my pages. I can see the divs in my source code, but nothing is inside them.

    I'm using a custom theme, and nothing has changed since the update.
    Any ideas?

    http://www.fearless-future.com/wordpress

    Here is the code after the loop:

    <div class="navigation_bottom">
    <div class="alignleft"><?php next_post_link('%link', '&laquo; Previous Entries', TRUE); ?></div>
    <div class="alignright"><?php previous_posts_link('%link', 'Next Entries &raquo;', TRUE); ?></div>
    </div>

  2. Samuel B
    moderator
    Posted 5 years ago #

  3. bedspring
    Member
    Posted 5 years ago #

    Thanks,
    I tried that already, none doing... :(

    Also these are the navigational links on the front page and the archives to see the previous and next pages of entries.
    The previous and next article links on the single.php work fine.

  4. bedspring
    Member
    Posted 5 years ago #

    I need the navigational links outside the loop.
    They are to access the older posts on the index page.

  5. cmm225
    Member
    Posted 5 years ago #

    This is what I used: <?php next_posts_link('« Previous Page') ?> <?php previous_posts_link('Next Page »') ?>

    With an "s" Without, doesn't work... for me anyway.

  6. tinhead
    Member
    Posted 5 years ago #

    Had the same problem - disabled sticky plugin and all returned to normal

  7. bedspring
    Member
    Posted 5 years ago #

    Thanks, cmm225, I tried that again just to see if I was missing something, but still nothing shows up.

    I also tried activating the default theme to see if their previous and next entries work on the main page, and they don't show up either with the default theme.

  8. bedspring
    Member
    Posted 5 years ago #

    Thanks tinhead, you are my hero.
    It works now.

    Thanks everyone!

  9. tinhead
    Member
    Posted 5 years ago #

    Thanks! All the world needs now is a sticky plugin that works :)

Topic Closed

This topic has been closed to new replies.

About this Topic