分页插件WP-PageNavi

既然装了,就要推介一下: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 themes directory if it exists.

· If it doesnt 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文件中。

安装之后的分页效果如下:

pagenavi

分享家:Addthis中国

相关阅读:

  1. 把Falbum整合到wordpress的theme中的方法
  2. wordpress下Falbum中sidebar的下沉问题解决方法

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>