Ready to get started?Download WordPress


How to get nav-previous and nav-next links to show after post (5 posts)

  1. Rhia42
    Posted 3 years ago #

    This does not appear to be a plugin, as it is not in the source code, but after each post there is a <----- XXXX previous post and next post ----->

    I have used YARPP for this previously, but like I mentioned that will show up in the source code, and I see nav-previous and nav-next in the css of WP 3.0

    Can anyone tell me how to set this so that these previous/next posts come up?


  2. Agus Suhanto
    Posted 3 years ago #

    Put something like this in your single.php inside your theme directory.

    <div id="nav-below" class="navigation">
      <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div>
      <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>
    </div><!-- #nav-below -->
  3. Rhia42
    Posted 3 years ago #

    That is actually already in the twenty theme

  4. Rhia42
    Posted 3 years ago #

    anyone else have any suggestions as to how this shows up ?

  5. Rhia42
    Posted 3 years ago #

    anyone know how to solve this?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.