WordPress.org

Ready to get started?Download WordPress

Forums

Add next and previous link to oulipo theme (2 posts)

  1. goyaltarun
    Member
    Posted 3 years ago #

    I have my website at http://www.careerilove.com and i use Oulipo theme.

    The theme does not have a next and previous post link. So if a user is reading one post and wants to navigate to the next or previous post, he can't do that. How can I add a next post and previous post link on my blog.

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    the functions are:
    http://codex.wordpress.org/Function_Reference/next_post_link
    http://codex.wordpress.org/Function_Reference/previous_post_link

    example use (from twenty ten):

    <div id="nav-above" class="navigation">
    					<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div>
    					<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>
    				</div><!-- #nav-above -->

    you would need to add this kind of code to single.php of your theme.

Topic Closed

This topic has been closed to new replies.

About this Topic