next_posts_link

POST LINK TAG

What It Does

Displays a link to the previous posts. Note that the name “next_posts_link” can be confusing. You may also want to read previous_posts_link.

Code

<?php next_posts_link(‘anchor’, ‘maxpages’) ?>

Anchor

The anchor text to be used for the link.

Maxpages

The maximum number of pages to link to. “0″ is unlimited.

Example

<?php next_posts_link(‘Next Posts »’, ’0′) ?>