Languages: English • 日本語 (Add your language)
Prints a link to the previous set of posts within the current query.
If you need the values for use in PHP, use get_previous_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 previous_posts_link( $label ); ?>
<?php previous_posts_link(); ?>
<?php previous_posts_link( '« Newer Entries' ); ?>
<?php if( get_previous_posts_link() ) : previous_posts_link( '« Newer Entries' ); endif; ?>
Since: 0.71
previous_posts_link() is located in wp-includes/link-template.php
.