posts_nav_link()
posts_nav_link( string $sep = ”, string $prelabel = ”, string $nxtlabel = ” )
显示上一页和下一页的“文章页”链接导航。
Displays the post pages link navigation for previous and next pages.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$sep | (string) | 可选 | 文章导航链接的分隔符。 |
$prelabel | (string) | 可选 | 前几页的标签。 |
$nxtlabel | (string) | 可选 | 下一页的标签。 |
返回(Return)
无返回值
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
0.71 | wp-includes/link-template.php:2542 | 0 | 1 function |
笔记(Notes)
使用图像
默认用法
居中DIV
posts_nav_link() 为WP2原创文章,链接:https://www.wp2.cn/functions/posts_nav_link/