Skip to content

WordPress: Add Next And Previous Post Links

wordpress-old-posts-newer-p

On each Post, you can add links to the next or previous posts by adding this code below.

Go to DASHBOARD
>Appearance
>Themes
>Editor

You will have to edit this file:
“Page Template”
page.php

“Older Entries” and “Newer Enties” Code:

<div class="navigation index">
<div class="alignleft">
<?php previous_post_link('%link','&laquo; Older Entries') ?>
</div>
<div class="alignright">
<?php next_post_link('%link','Newer Entries &raquo;') ?>
</div>
</div><!--end navigation-->
Read more from WordPress

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments

*