Show your recent posts on sidebar and provide ajax pagenav function.
Show your recent posts on sidebar and provide ajax pagenav function.
How to use this plug-in? It's easy and you have two ways:
1.Go to widgets page to add the widget to your sidebar.
2.use the function <?php WP_Ajax_Recent_Posts('number=8&cmtcount=1&excerpt=1&length=100'); ?> to custom the posts display position.
This function accepts four parameters:
number: how many posts display. Type: Integer, default 8
cmtcount: display comments count of the post. Type: Boolean, default 0. 1: yes, 0: no
excerpt: display excerpt of no. Type: Boolean, default 0. 1: yes, 0: no
length: the length of the excerpt. Type: Integer, default 100
显示一组支持ajax查看的最新文章列表。
如何使用插件呢?很简单,有两种方法:
1.到小工具页面去添加小工具。
2.使用自定义调用函数<?php WP_Ajax_Recent_Posts('number=8&cmtcount=1&excerpt=1&length=100'); ?>
Requires: 2.7 or higher
Compatible up to: 3.0.5
Last Updated: 2010-10-8
Downloads: 1,218
Got something to say? Need help?