Title: WP Ajax Random Posts
Author: qiqiboy
Published: <strong>11. Oktober 2010</strong>
Last modified: 18. Oktober 2010

---

Search plugins

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.

![](https://s.w.org/plugins/geopattern-icon/wp-ajax-random-posts.svg)

# WP Ajax Random Posts

 By [qiqiboy](https://profiles.wordpress.org/qiqiboy/)

[Download](https://downloads.wordpress.org/plugin/wp-ajax-random-posts.1.0.0.zip)

 * [Details](https://ltz.wordpress.org/plugins/wp-ajax-random-posts/#description)
 * [Reviews](https://ltz.wordpress.org/plugins/wp-ajax-random-posts/#reviews)
 *  [Installation](https://ltz.wordpress.org/plugins/wp-ajax-random-posts/#installation)
 * [Development](https://ltz.wordpress.org/plugins/wp-ajax-random-posts/#developers)

 [Support](https://wordpress.org/support/plugin/wp-ajax-random-posts/)

## Description

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 显示一组支持ajax自动刷新的随机
文章列表。 如何使用插件呢？很简单，有两种方法： 1.到小工具页面去添加小工具。 2.使用
自定义调用函数`<?php WP_Ajax_Random_Posts('number=8&cmtcount=1&excerpt=1&length=
100&auto=0&time=60'); ?>`

## Installation

 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.

下载插件，上传到插件目录，在后台管理中激活插件，到设置页面进行简单设置，然后在小
工具页面向边栏添加ajax随机文章即可。

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

 *   [ qiqiboy ](https://profiles.wordpress.org/qiqiboy/)

[Translate “WP Ajax Random Posts” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-ajax-random-posts)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-ajax-random-posts/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-ajax-random-posts/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-ajax-random-posts/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-ajax-random-posts/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

2010/10/09
 插件开发完毕，上线。

## Meta

 *  Version **1.0.0**
 *  Last updated **16 Joren ago**
 *  Active installations **10+**
 *  WordPress version ** 2.7 or higher **
 *  Tested up to **3.0.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-ajax-random-posts/)
 * Tags
 * [ajax](https://ltz.wordpress.org/plugins/tags/ajax/)[posts](https://ltz.wordpress.org/plugins/tags/posts/)
   [random](https://ltz.wordpress.org/plugins/tags/random/)
 *  [Advanced View](https://ltz.wordpress.org/plugins/wp-ajax-random-posts/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-ajax-random-posts/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-ajax-random-posts/reviews/)

## Contributors

 *   [ qiqiboy ](https://profiles.wordpress.org/qiqiboy/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-ajax-random-posts/)