previous_posts_link()

You are here:

previous_posts_link( string $label = null )

Displays the previous posts page link.

Parameters Parameters

$label

(string) (Optional) Previous page link text.

Default value: null


Top ↑

More Information More Information

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).


Top ↑

Source Source

File: wp-includes/link-template.php

2481
2482
2483
function previous_posts_link( $label = null ) {
    echo get_previous_posts_link( $label );
}


Top ↑

Changelog Changelog

Changelog
VersionDescription
0.71Introduced.
Was this article helpful?
Dislike 0
Views: 1

Cart

Log in

Create an Account
Back to Top