previous_posts() – Displays or retrieves the previous posts page link.
You appear to be a bot. Output may be restricted
Description
Displays or retrieves the previous posts page link.
Usage
$string|void = previous_posts( $display );
Parameters
- $display
- ( bool ) optional default: 1 – Optional. Whether to echo the link. Default true.
Returns
string|void The previous posts page link if `$display = false`.
Source
File name: wordpress/wp-includes/link-template.php
Lines:
1 to 9 of 9
function previous_posts( $display = true ) { $output = esc_url( get_previous_posts_page_link() ); if ( $display ) { echo $output; } else { return $output; } }