改变WORDPRESS原本换页方法的插件,效果为显示页码列表而非“上一页 下一页”
安装:不解释
使用:见E文
Change the page navigation way.
Installation: unzip & enable
Usage: open your template, find index.php
search for navigation part like this:
- <div class="alignleft"><?php next_posts_link('« 较旧文章') ?></div>
- <div class="alignright"><?php previous_posts_link('较新文章 »') ?></div>
Replace it with this:
- <?php
- if(function_exists('SimplePageNavi') )
- SimplePageNavi();
- else
- {
- ?>
- <div class="alignleft"><?php next_posts_link('« 较旧文章') ?></div>
- <div class="alignright"><?php previous_posts_link('较新文章 »') ?></div>
- <?php
- }
- ?>
Quite easy, huh?
Download(333 times)






我迫切认为最好把SimplePageNavi的显示方式独立成一个单独的css,然后给个界面去换,不然在你的simplePageNavi函数里添个参数也很好(像UTW那样),多提供几种风格
早想过了,结论是懒得写,要的自己去HACK……
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:)