模板标签-next_posts_link()

0条评论

说明

该标签为“之前”的文章生成链接。没错,虽然该标签的名称“next posts”会让你有些摸不着头脑。next_posts_link假设文章均以逆向时间顺序排列(新发表文章排列在文章列表上方,较早发表的文章排列在下方,甚至到下一页),因此在时间轴上,“下一页”文章列表中的文章距离现在时间更远,在当前页文章“之前”,而不是“之后”。

用法

<?php next_posts_link( $label , $max_pages ); ?> 

参数

$label

(字符串)(可选)链接文本。

默认值: 'Next Page »'

$max_pages

(整数)(可选)限制显示链接的页面的数量。

默认值:0

示例

默认用法

<?php next_posts_link(); ?>  

工作示例

<?php next_posts_link('Older Entries »', 0); ?>  

注释

参见previous_posts_link()与next_post_lnik()。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.