Retrieves the next posts page link.
Description
Backported from 2.1.3 to 2.0.10.
Parameters
$max_page
intoptional- Max pages. Default 0.
Source
function get_next_posts_page_link( $max_page = 0 ) {
global $paged;
if ( ! is_single() ) {
if ( ! $paged ) {
$paged = 1;
}
$next_page = (int) $paged + 1;
if ( ! $max_page || $max_page >= $next_page ) {
return get_pagenum_link( $next_page );
}
}
}
Changelog
Version | Description |
---|---|
2.0.10 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.