研究学习:网站标准化(WEB Standards)、搜索引擎优化(SEO)、网络营销

WORDPREES 页码插件wp-pagenavi相关事项

.WORDPREES 页码插件wp-pagenavi
wp-pagenavi可以使用Pages (17): [1] 2 3 4 » … Last »…形式的页码导航方式,比WP默认的好用。
目前最新的版本是2.50.可以支持WP2.8。

插件文档页面:
http://lesterchan.net/wordpress/readme/wp-pagenavi.html
下载地址:http://downloads.wordpress.org/plugin/wp-pagenavi.2.50.zip
使用方法: 
1  把插件放到plugins文件夹。
2 在管理后台启用。
3 把下面的代码放到你要的地方。

<div class="postnav"><?php if(function_exists(‘wp_pagenavi’)){ wp_pagenavi(); } else { ?><div class="prev"><?php next_posts_link(__(‘« Previous Entries’)) ?></div><div class="next"><?php previous_posts_link(__(‘Next Entries »’)) ?></div> <?php } ?></div>

4 在后台的“设置”菜单中进行插件设置。英文的看不懂的话,可以下载中文语言包放到wp-pagenavi插件文件夹。这个是半肥猫从网上找到汉化的文件,用过,没有发现什么大的问题。
5 浏览一下自己的网站,如果想修改默认的样式,打开插件下面的pagenavi-css.css进行修改就好了。

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>