previous_posts( bool $echo = true )
Displays or retrieves the previous posts page link.
Description Description
Parameters Parameters
- $echo
-
(bool) (Optional) Whether to echo the link.
Default value: true
Return Return
(string|void) The previous posts page link if $echo = false
.
Source Source
File: wp-includes/link-template.php
2396 2397 2398 2399 2400 2401 2402 2403 2404 | function previous_posts( $echo = true ) { $output = esc_url( get_previous_posts_page_link() ); if ( $echo ) { echo $output ; } else { return $output ; } } |
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
0.71 | Introduced. |