This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Ajax Random Posts


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 auto refresh interval(seconds). Type: Integer, default 60
2.使用自定义调用函数<?php WP_Ajax_Random_Posts('number=8&cmtcount=1&excerpt=1&length=100&auto=0&time=60'); ?>


  1. Download the plugin archive and expand it (you’ve likely already done this).
  2. Put the ‘WP Ajax Random Posts’ directory into your wp-content/plugins/ directory.
  3. Go to the Plugins page in your WordPress Administration area and click ‘Activate’ for WP Ajax Random Posts.
  4. Go to the WP Ajax Random Posts Options page (Settings > WP Ajax Random Posts Option).
  5. Go to widgets page to add the widget to your sidebar.


Contributors & Developers

“WP Ajax Random Posts” is open source software. The following people have contributed to this plugin.


Translate “WP Ajax Random Posts” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.