WordPress: Add Next And Previous Post Links

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


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

“Older Entries” and “Newer Enties” Code:

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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>