WP中自带有这两个函数:<?php previous_post('« %','','yes','no',1,'') ?>
以previous_post这个函数为例:
<?php previous_posts_link('Next Entries »') ?><?php previous_post('format','text','title','same category',limit,'not from category'); ?>
参数:
- 'format' - string - '%' 将被替换成超链接, 所以'Go to %' 将产生如下效果 "Go to <a href=..." Defaults to '%'。
- 'text' - string - 链接的文字显示. 默认为'previous post: '。
- 'title' - string - 选择 'yes' or 'no'. 是否在链接文字中显示标题。如果选择 'yes', 就会在链接中显示文章标题。 默认为 'yes'。
- 'same category' - string - 选择 'yes' or 'no'. 下一篇文章是否应该来自同一个分类。 默认为 'no'。
- limit - integer -不清楚。默认为1。
- 'not from category' - string - 一份下一篇文章不应该来自那个分类的清单。默认为 ''。
1 个无聊的人:
gfw抽风中,来see see
发表评论