WP插件介绍:WP Page Numbers

十二月 15th, 2008 浏览: 995 views次点击

这几天在选择主题的时候费了一翻劲,好的主题没有找到,到是发现了几个比较优秀的插件。WP内置翻页是一件很痛苦的事,即使将内置英文改写成“前一页,后一页”,我不习惯使用那种方式,到其他博主翻文章阅读到一半的时候, 想起前几页中有篇文章还要值得回头再看看,那只能倒过去一页页按回去,要是寻找那篇文章不小心遗漏倒过了头,不巧又翻到了第一页,那可要抓狂的。

以前使用的是wp-pagenavi插件,大多数受不了WP内置翻页的同学和我以前一样使用这款,但是总感觉显示的页码排列顺序怪怪的,反正是不大 喜欢那种形式,今天介绍另一款插件,WP Page Numbers,这款也是和wp-pagenavi功能一样替代内置翻页,用数字来表示的一款插件

插件名称:WP Page Numbers

插件描述:用页码数字横排显示来替代WP内置的“前一页、后一页”

作者主页:http://www.jenst.se

下载地址:http://www.jenst.se/2008/03/29/wp-page-numbers

插件版本:0.2  支持WP 2.3+  林晨现在正在使用的是2.7

样式显示:共五款

安装方法:

  1. 下载文件,将其中的文件夹 “wp-page-numbers” 上传至/wp-content/plugins/
    Upload the FOLDER ‘wp-page-numbers’ to the /wp-content/plugins/
  2. 在管理后台-插件-开启 “WP Page Numbers”
    Activate the plugin ‘WP Page Numbers’ through the ‘Plugins’ menu in admin
  3. 管理后台-设置-设置 “WP Page Numbers” 相关选项,更新即可
    Go to ‘Options’ or ‘Settings’ and then ‘WP Page Numbers’ to change the options

使用方法:

  1. 将主题中的archive.php, index.php 或者 search.php这几个文件里的 “next_posts_link()” 和 “previous_posts_link()” 去除
    Replace the the ‘next_posts_link()’ and ‘previous_posts_link()’ with the code below in theme (archive.php, index.php or search.php).
  2. 添加以下代码
  3. <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>

总结:

现在还没有使用这个翻页插件,但感觉还可以,等新皮出炉的时候在放上。在后台有五个样式可以选择,可以自己建立新的独立的样式而不影响其他五个样式,而 wp-pagenavi好像是要修改原先的CSS,如果想用回原来的恐怕就有下载新的文件覆盖了,至少在这一点上我认为就不错,并且这款插件的页码排列的 顺序是我喜欢的。

原文链接http://www.notycn.com/web/155.html

相关文章

Entry Filed under: WP 相关

22 Comments Add your own

  • 1. 诗意地栖息在大地上  |  十二月 15th, 2008 at 10:07 上午  [回复]

    现在翻页还不是怎么急需,呵呵,谢谢博主推荐啊

  • 2. aunsen  |  十二月 15th, 2008 at 10:25 上午  [回复]

    这个也不错啊,不过wp-pagenavi习惯了!

  • 3. 天涯始之堕落  |  十二月 15th, 2008 at 11:09 上午  [回复]

    是啊,习惯了用wp-pagenavi

  • 4. yadandimao  |  十二月 15th, 2008 at 11:09 上午  [回复]

    这个不错 去下载

  • 5. Sheik  |  十二月 15th, 2008 at 12:17 下午  [回复]

    很帅气~z-blog在这点上就差好多了

  • 6. 林晨  |  十二月 15th, 2008 at 12:23 下午  [回复]

    @Sheik, 嗯,这个插件主要是界面美观,对于某些主题来说,搭配相当好

  • 7. 林晨  |  十二月 15th, 2008 at 12:28 下午  [回复]

    @诗意地栖息在大地上, 呵呵,做个装饰也好

  • 8. 林晨  |  十二月 15th, 2008 at 12:29 下午  [回复]

    @aunsen, 效功能一样,但是WP Page Numbers效果比较好

  • 9. 网折小折  |  十二月 15th, 2008 at 12:48 下午  [回复]

    我那也写了篇文章真该看了吧

  • 10. 煎鱼  |  十二月 15th, 2008 at 1:36 下午  [回复]

    好象差不多,不过,到是不用改CSS,这点倒方便

  • 11. 木月皿  |  十二月 15th, 2008 at 2:17 下午  [回复]

    改改CSS,应该也可以的。

  • 12. longlan  |  十二月 15th, 2008 at 3:45 下午  [回复]

    类似的插件好像很多哦。。。

  • 13. 林晨  |  十二月 15th, 2008 at 4:55 下午  [回复]

    @木月皿, 我在本地测试用了,感觉很好,直接在后台控制

  • 14. 林晨  |  十二月 15th, 2008 at 4:56 下午  [回复]

    @煎鱼, 恩,就看中这点,默认的五种样式已经足够

  • 15. 林晨  |  十二月 15th, 2008 at 4:56 下午  [回复]

    @longlan, 是挺多的

  • 16. Eden  |  十二月 15th, 2008 at 5:01 下午  [回复]

    效果的确好看很多,容易匹配主题。

  • 17. daniel  |  十二月 15th, 2008 at 11:53 下午  [回复]

    又多了一个选择

  • 18. 火星基地  |  十二月 16th, 2008 at 2:36 上午  [回复]

    这个比pagenavi好, 做个记号, 回头试试

  • 19. YoungCheon  |  十二月 16th, 2008 at 8:53 上午  [回复]

    听说这款定义很强

  • 20. notycn  |  一月 14th, 2009 at 1:16 上午  [回复]

    给个转载来源吧,呵呵

  • 21. notycn  |  一月 14th, 2009 at 1:17 上午  [回复]

    @notycn 不过转载再修改你够辛苦的

  • 22. 林晨  |  一月 14th, 2009 at 2:10 下午  [回复]

    @notycn 对不住了兄弟,意识薄弱,呵呵。

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


同分类文章

标签

最新文章