函数原型
posts_nav_link( string $sep = ”, string $prelabel = ”, string $nxtlabel = ” )
函数描述
Displays the post pages link navigation for previous and next pages.
是否弃用
未弃用
函数参数
-
$sep
string
Optional - Separator for posts navigation links.
Default:
'' -
$prelabel
string
Optional - Label for previous pages.
Default:
'' -
$nxtlabel
string
Optional - Label for next pages.
Default:
''
函数返回值
无
函数位置
File: wp-includes/link-template.php.
函数源码
function posts_nav_link( $sep = '', $prelabel = '', $nxtlabel = '' ) {
$args = array_filter( compact( 'sep', 'prelabel', 'nxtlabel' ) );
echo get_posts_nav_link( $args );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 0.71 | Introduced. |

