WordPress.org

Ready to get started?Download WordPress

Forums

"Multipost" display navigation (2 posts)

  1. Eric Martin
    Member
    Posted 6 years ago #

    Hello,

    In the default WordPress theme, for multipost navigation, I see the following code:

    <div class="navigation">
        <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
        <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    </div>

    I was trying to find out more information about the 2 functions above and found that the codex page was either missing or incomplete.

    After a search on this forum, I found that it was suggested to use posts_nav_link instead.

    So, I'm curious about the status of the first 2 functions.

    Can I/someone update the codex page, reflecting that posts_nav_link should be used instead?

  2. Eric Martin
    Member
    Posted 6 years ago #

    Hmm...I was just checking out the code for posts_nav_link and it actually calls both next_posts_link and previous_posts_link.

    So, I guess they are not deprecated, but wonder why it would be suggested not to use them...?

Topic Closed

This topic has been closed to new replies.

About this Topic