Displays or retrieves the next posts page link.
Parameters
$max_page
intoptional- Max pages. Default 0.
$display
booloptional- Whether to echo the link.
Default:
true
Source
function next_posts( $max_page = 0, $display = true ) {
$link = get_next_posts_page_link( $max_page );
$output = $link ? esc_url( $link ) : '';
if ( $display ) {
echo $output;
} else {
return $output;
}
}
Changelog
Version | Description |
---|---|
0.71 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.