Uses
Uses | Description |
---|---|
wp-includes/link-template.php: get_previous_posts_link() | Retrieves the previous posts page link. |
Displays the previous posts page link.
(string) (Optional) Previous page link text.
Default value: null
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).
File: wp-includes/link-template.php
function previous_posts_link( $label = null ) { echo get_previous_posts_link( $label ); }
Version | Description |
---|---|
0.71 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/previous_posts_link