get_next_posts_page_link()
最后更新于:2021-11-26 10:11:26
get_next_posts_page_link( int$max_page)Retrieves the next posts page link.
参数
- $max_page
-
(int) (Optional) Max pages. Default 0.
响应
(string|void) The link URL for next posts page.
源文件
文件: gc-includes/link-template.php
function get_next_posts_page_link( $max_page = 0 ) {
global $paged;
if ( ! is_single() ) {
if ( ! $paged ) {
$paged = 1;
}
$nextpage = (int) $paged + 1;
if ( ! $max_page || $max_page >= $nextpage ) {
return get_pagenum_link( $nextpage );
}
}
}