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

  1. goyaltarun
    Posted 5 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. Michael
    Forum Moderator
    Posted 5 years ago #

    the functions are:

    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