Template Tags/next posts link
Материал из WordPress Wiki
Содержание |
Description
This creates a link to the previous posts. Yes, it says "next posts," but it's named that just to confuse you.
Usage
%%% <?php next_posts_link('Label', 'Max number of pages (default 0)'); ?> %%%
Examples
Default Usage
<?php next_posts_link(); ?>
Working example
<?php next_posts_link('Next Entries »', 0) ?>
Parameters
- label
- (string) The link text. Default is 'Next Page »'.
- max_pages
- (integer) Limit the number of pages on which the link is displayed.
Related
See also previous_posts_link(), next_post_link(), and previous_post_link().