Make the navigation of a single post page to work

In the wordpress codex, the format of previous post link is:
<?php previous_post_link($format, $link, $in_same_cat = false, $excluded_categories = ''); ?>
Respectively for the next post will be:
<?php next_post_link($format, $link, $in_same_cat = false, $excluded_categories = ''); ?>
Example:
<?php previous_post_link('<strong>%link</strong>', '<< Previous', TRUE, '5'); ?>
<?php next_post_link('<strong>%link</strong>', 'Next >>', TRUE, '5'); ?>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s