Title: WP Ajax Random Posts
Author: qiqiboy
Published: <strong>2010 年 10 月 11 日</strong>
Last modified: 2010 年 10 月 18 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# WP Ajax Random Posts

 作者：[qiqiboy](https://profiles.wordpress.org/qiqiboy/)

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

 * [详情](https://cn.wordpress.org/plugins/wp-ajax-random-posts/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-ajax-random-posts/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-ajax-random-posts/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-ajax-random-posts/#developers)

 [支持](https://wordpress.org/support/plugin/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 显示一组支持ajax自动刷新的随机
文章列表。 如何使用插件呢？很简单，有两种方法： 1.到小工具页面去添加小工具。 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.

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

## 评价

此插件暂无评价。

## 贡献者及开发者

「WP Ajax Random Posts」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「WP Ajax Random Posts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-ajax-random-posts)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-ajax-random-posts/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-ajax-random-posts/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-ajax-random-posts/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-ajax-random-posts/)。

## 更新日志

#### 1.0

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

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**16 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-ajax-random-posts/)
 * 标签
 * [ajax](https://cn.wordpress.org/plugins/tags/ajax/)[posts](https://cn.wordpress.org/plugins/tags/posts/)
   [random](https://cn.wordpress.org/plugins/tags/random/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-ajax-random-posts/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/wp-ajax-random-posts/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-ajax-random-posts/)