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