Show your Random posts on sidebar and provide ajax auto refresh function.
As of April 2026, WP Ajax Random Posts is a WordPress ajax plugin with 10 active installations and a 0/5 rating0. It has been downloaded 3.2K+ times in total. Requires WordPress 2.7+ and PHP false+. Available on WordPress.org since 2010. Last updated 15 years ago — may have compatibility concerns. Top alternative: SearchWP Live Ajax Search.
Show your random posts on sidebar and provide ajax refresh 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_Random_Posts('number=8&cmtcount=1&excerpt=1&length=100&auto=0&time=60'); ?> to custom the posts display position.
This function accepts six 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
auto: auto refresh random psots list or not. Type: Boolean, default 0. 1: yes, 0: no
time: the aut…
| WordPress | 2.7+ requiredTested up to 3.0.5 |
| PHP | false+ required |
2010/10/09
插件开发完毕,上线。
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.