Codex tools: Log in
Languages: English • 日本語 • (Add your language)
Contents |
Prints a link to the next set of posts within the current query.
If you need the values for use in PHP, use get_next_posts_link().
Because post queries are usually sorted in reverse chronological order, next_posts_link() usually points to older entries (toward the end of the set) and previous_posts_link() usually points to newer entries (toward the beginning of the set).
<?php next_posts_link( $label , $max_pages ); ?>
<?php next_posts_link(); ?>
<?php next_posts_link('Older Entries »', 0); ?>
Since: 0.71
next_posts_link() is located in wp-includes/link-template.php.
Pagination: posts_nav_link(), next_posts_link(), previous_posts_link(), get_next_posts_link(), get_previous_posts_link(), paginate_links() wp_link_pages(), next_post_link(), previous_post_link(), next_image_link(), previous_image_link(),