WordPress.org

Support

Support » How-To and Troubleshooting » How to get nav-previous and nav-next links to show after post

How to get nav-previous and nav-next links to show after post

  • 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?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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 -->
    

    That is actually already in the twenty theme

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

    anyone know how to solve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to get nav-previous and nav-next links to show after post’ is closed to new replies.