既然装了,就要推介一下:wordpress的分页工具,下载地址,目前最新版本2.40。
Installation Instructions
1. Open wp-content/plugins Folder
2. Put:
Folder: wp-pagenavi
3. Activate WP-PageNavi Plugin
General Usage
1. Open wp-content/themes/<YOUR THEME NAME>/footer.php
2. Add Anywhere:
<?php if(function_exists(’wp_pagenavi’)) { wp_pagenavi(); } ?>
3. Go to ‘WP-Admin -> Settings -> PageNavi’ to configure WP-PageNavi.
4. If you need to configure the CSS style of WP-PageNavi, open and edit:
/wp-content/plugins/wp-pagenavi/pagenavi-css.css
Note
· WP-PageNavi will load ‘pagenavi-css.css‘ from your theme’s directory if it exists.
· If it doesn’t exists, it will just load the default ‘pagenavi-css.css’ that comes with WP-PageNavi.
· This will allow you to upgrade WP-PageNavi without worrying about overwriting your page navigation styles that you have created.
以上是英文的安装说明,一般的按照其说明安装没错,就我当前使用的主题 “Fluid Blue” 而言,本身包含了分页函数,因此要做些修改。分页函数出现在index.php中,把默认函数删除,再把
<?php if(function_exists(’wp_pagenavi’)) { wp_pagenavi(); } ?>
插进去保存即可,不要按说明中的保存在footer.php文件中。
安装之后的分页效果如下:

相关阅读: