Title: Advanced Random Posts
Author: yakuphan
Published: <strong>2008 年 11 月 1 日</strong>
Last modified: 2009 年 9 月 5 日

---

搜索插件

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

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

# Advanced Random Posts

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

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

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

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

## 描述

Advanced Random Posts Widget displays your posts by selecting randomly with thumbnail
images (optional). It gets posts from selected categories or current category or
all posts. When your visitors are at home, it gets posts from all posts or selected
category. If you set ‘Get posts from current category’, when visitors see single
post, widget lists posts in the same category of single post or when visitors click
a category link, it gets posts from current category.

Notice: Version 2.2+ requires at least 2.8.

#### Supported Languages

 * English
 * Turkish
 * Russian – Thanks [Fatcow ](http://www.fatcow.com)

### 选项

Widget’s options allow you to change your random posts list displaying.

#### Title:

Your random posts widget’s title on your sidebar.

#### Number of posts to show:

How many posts to display

#### Excerpt length (letters)

You know that

#### Thumbnail Custom Field Name

If you want to display the thumbnail of your posts via a custom field, write its
name.

#### Height – Width

Images size.

#### Get first image of post

If you don’t want to use custom field, plugin will get first image from your post
content.

#### Get first attached image of post

Plugin gets first attached image of post.

#### Default image

If post has no image, plugin display this image. Ex: http://www.yakupgovler.com/
default-image.png

Notice: If you use three options, plugin uses custom field image firstly. If the
post has no custom field, it gets first image from content. At last it gets first
attached image. I suggest not to use “Get first image of post” for performance. 
It queries much more.

#### Categories

Plugin gets posts in these categories. (Category IDs, separated by commas.)

#### Get posts from current category:

Posts will be get from current category (single post’s category or current category).

## 屏幕截图

[⌊Widget's screenshot in 'Appearance'->'Widgets'⌉⌊Widget's screenshot in 'Appearance'-
>'Widgets'⌉[

Widget’s screenshot in ‘Appearance’->’Widgets’

## 安装

#### Installation

 1. Make sure you are running WordPress version 2.8 or better. It won’t work with older
    versions. If you have older versions, please download v1.1
 2. Download the zip file and extract the contents.
 3. Upload the ‘advanced-random-posts’ folder (wp-content/plugins/).
 4. Activate the plugin through the ‘plugins’ page in WP.
 5. See ‘Appearance’->’Widgets’ to place it on your sidebar. Set the settings.

## 常见问题

  Installation Instructions

#### Installation

 1. Make sure you are running WordPress version 2.8 or better. It won’t work with older
    versions. If you have older versions, please download v1.1
 2. Download the zip file and extract the contents.
 3. Upload the ‘advanced-random-posts’ folder (wp-content/plugins/).
 4. Activate the plugin through the ‘plugins’ page in WP.
 5. See ‘Appearance’->’Widgets’ to place it on your sidebar. Set the settings.

  How can I set it to get posts from current category?

Select checkbox on widget’s settings called ‘Get posts from current category’.

  I want to display only the posts in two categories.

You have to write their category’s ids -seperated with a comma- to ‘Categories’ 
textbox.

  I don’t use Widgets. How can use this widget?

Please, visit my [website](http://www.yakupgovler.com/?p=416).

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

「Advanced Random Posts」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/advanced-random-posts/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 2.3

 * Fixed a bug. If you don’t set image dimensions, it displays thumbnail wrong.

#### 2.2

 * Added Russian language support

#### 2.1

 * Fixed a bug. When you check ‘Get posts from current category’ and you are in 
   a single post, widget calls an error. Thanks [E.Ali](http://www.alivesitesi.com/).

#### 2.0

 * Added thumbnail image support
 * Added multi-language support
 * Rewriten by using WordPress 2.8 Widget Class API

#### 1.1

 * Bug fixed, showing the same post id.

#### Version 1.0

 * Initial release version.

## 额外信息

 *  版本 **2.3**
 *  最后更新：**9 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **2.8.4**
 *  语言
 * [English (UK)](https://en-gb.wordpress.org/plugins/advanced-random-posts/) 、
   [English (US)](https://wordpress.org/plugins/advanced-random-posts/) 和 [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/advanced-random-posts/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/advanced-random-posts)
 * 标签
 * [category](https://cn.wordpress.org/plugins/tags/category/)[category posts](https://cn.wordpress.org/plugins/tags/category-posts/)
   [posts](https://cn.wordpress.org/plugins/tags/posts/)[random](https://cn.wordpress.org/plugins/tags/random/)
   [Random Posts](https://cn.wordpress.org/plugins/tags/random-posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/advanced-random-posts/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://www.yakupgovler.com/?p=416)