Wordpress Plugin: SimplePageNavi v1.0 release by Jerry

改变WORDPRESS原本换页方法的插件,效果为显示页码列表而非“上一页 下一页”
安装:不解释
使用:见E文

Change the page navigation way.
Installation: unzip & enable
Usage: open your template, find index.php
search for navigation part like this:

  1. <div class="alignleft"><?php next_posts_link('&laquo; 较旧文章') ?></div>
  2.             <div class="alignright"><?php previous_posts_link('较新文章 &raquo;') ?></div>

Replace it with this:

  1. <?php 
  2.             if(function_exists('SimplePageNavi') )
  3.                 SimplePageNavi();
  4.             else
  5.             {
  6.             ?>
  7.             <div class="alignleft"><?php next_posts_link('&laquo; 较旧文章') ?></div>
  8.             <div class="alignright"><?php previous_posts_link('较新文章 &raquo;') ?></div>
  9.             <?php
  10.             }
  11.             ?>

Quite easy, huh?
Download(333 times)

Related posts

3 Responses to “Wordpress Plugin: SimplePageNavi v1.0 release by Jerry”


  1. 1 (沙发) Hanliinter

    我迫切认为最好把SimplePageNavi的显示方式独立成一个单独的css,然后给个界面去换,不然在你的simplePageNavi函数里添个参数也很好(像UTW那样),多提供几种风格

  2. 2 (板凳) Jerry

    早想过了,结论是懒得写,要的自己去HACK……

  3. 3 (地毯) Jerry

    Anyway, it's the simplest plugin(with only one function- -#). I've already found bugs. But I just want that dumb way of navigation to walk around. Forgive me:)

Leave a Reply