get_next_posts_page_link( int $max_page )
Retrieves the next posts page link.
描述
Backported from 2.1.3 to 2.0.10.
参数
- $max_page
-
(int)
(Optional)
Max pages. Default 0.
返回值
(string|void) The link URL for next posts page.
源代码
File: wp-includes/link-template.php
function get_next_posts_page_link($max_page = 0) {
global $paged;
if ( !is_single() ) {
if ( !$paged )
$paged = 1;
$nextpage = intval($paged) + 1;
if ( !$max_page || $max_page >= $nextpage )
return get_pagenum_link($nextpage);
}
}
更新日志
Version | 描述 |
---|---|
2.0.10 | Introduced. |
相关函数
Uses
-
wp-includes/query.php:
is_single() -
wp-includes/link-template.php:
get_pagenum_link()
Used By
-
wp-includes/link-template.php:
next_posts()
你可能对这些文章感兴趣:
- wordpress函数get_the_posts_navigation()用法示例
- wordpress函数get_the_title()用法示例
- wordpress函数get_the_terms()用法示例
- wordpress函数get_the_tags()用法示例
- wordpress函数get_the_taxonomies()用法示例
- wordpress函数get_the_permalink()用法示例
- wordpress函数get_the_password_form()用法示例
- wordpress函数get_the_posts_pagination()用法示例
- wordpress函数get_the_modified_date()用法示例
- wordpress函数get_the_modified_time()用法示例
- wordpress函数get_the_modified_author()用法示例
- wordpress函数get_the_guid()用法示例
- wordpress函数get_the_ID()用法示例
- wordpress函数get_the_excerpt()用法示例
如有疑问,请前往问答中心反馈!
反馈