Title: Random Post Box
Author: Xoda
Published: <strong>2010 年 2 月 13 日</strong>
Last modified: 2010 年 7 月 28 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/random-post-box.svg)

# Random Post Box

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

[下载](https://downloads.wordpress.org/plugin/random-post-box.1.0.3.zip)

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

 [支持](https://wordpress.org/support/plugin/random-post-box/)

## 描述

Random Post Box is a plugin that lets you place a box anywhere on your blog, with
template tag or shortcode, and
 load random posts with an interval and fade effect.
It uses jQuery (Ajax) which means that the content is loaded without loading the
rest of the page. The timings can be set in the admin options-panel.

The template tag is `<?php random_post_box(); ?>`. You can also use the shortcode`[
random-post-box]` in a page or post.

#### Features

 * Insert placeholder with template tag
 * Insert placeholder with shortcode
 * Set time for displaying the post
 * Set times for fade in and fade out affect
 * Exclude or include posts by category
 * Exclude posts by age (in days)
 * Use title only
 * Use post excerpt or bodycontent
 * Strip tags from body
 * Show/hide post metadata

## 屏幕截图

[⌊The options page⌉⌊The options page⌉[

The options page

[⌊In use at Retrocamera blog⌉⌊In use at Retrocamera blog⌉[

In use at Retrocamera blog

## 安装

The installation is like mosts plugins:

 1. Download and extract the files
 2. Upload `random-post-box` folder to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Place `<?php random_post_box(); ?>` in your templates, or [random-post-box] in 
    a page or post.
 5. Important is to style the #random-post-box-frame with CSS and set the height and
    width in your theme.

The install doesn’t touch the database much, it just adds one option post.

## 常见问题

  Is there an option to display several posts?

Not at the moment, but it might be included in future versions. It’s not recommended
to use the
 template tag several times on the same page.

  How can I style the box?

The box is a div with id “random-post-box-frame”, and the markup inside is quite
similar to the
 default theme.

  The box changes size when loading a new post

You need to set the size to something static with CSS, or use some means to control
the size. Use the id “random-post-box-frame” as described
 in the previous answer.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「Random Post Box」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/random-post-box)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.3

 * Updated to work with WP 3.0

#### 1.0.2

 * Framing div-tag

#### 1.0.1

 * Fix bug: Query args stopped random post to work on pages.

#### 1.0

 * This is the first release

## 额外信息

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

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/random-post-box/reviews/#new-post)

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

## 贡献者

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

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.open-source-editor.com/donations)