How to navigate to “next post/previous post”
I’ve found in the Wiki these navigation tags but can’t seem to get them to work:
<?php next_posts(max); ?>
<?php previous_posts(); ?>
<?php next_posts_link('label', max); ?>
<?php previous_posts_link('label'); ?>
Used by posts_nav_link, below.
<?php posts_nav_link('separator', 'previous', 'next'); ?>
Displays navigation showing next and previous pages. This tag must be within “the loop”.
‘seperator’ – string – The seperator between the links. Defaults to ‘ :: ‘.
‘previous’ – string – The link text for the previous page. Defaults to ‘« Previous Page’.
‘next’ – string – The link text for the next page. Defaults to ‘Next Page »’.
Would some WP PHP expert please explain how to use these navigation tags?
- The topic ‘How to navigate to “next post/previous post”’ is closed to new replies.