Title: Random Content
Author: Jeremy Green
Published: <strong>19 Tháng 10, 2012</strong>
Last modified: 23 Tháng 3, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/random-content/assets/banner-772x250.png?rev=3454859)

![](https://ps.w.org/random-content/assets/icon-256x256.png?rev=3454855)

# Random Content

 Bởi [Jeremy Green](https://profiles.wordpress.org/endocreative/)

[Tải về](https://downloads.wordpress.org/plugin/random-content.1.6.5.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/random-content/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/random-content/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/random-content/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/random-content/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/random-content/)

## Mô tả

**Random Content** is the easiest way to keep your WordPress site feeling fresh 
and dynamic. Create content groups, add as many items as you want, and display a
random selection anywhere on your site with a single shortcode or widget.

Every time a visitor loads the page, they see something different. That means higher
engagement, more clicks, and a site that never feels stale.

#### What can you do with it?

 * **Rotate testimonials** — Show a different customer quote on every page load
 * **Randomize banners** — Keep sidebar and header promotions fresh without manual
   updates
 * **Cycle CTAs** — Test different calls-to-action to see what gets clicks
 * **Display tips or quotes** — Add variety to any page, post, or widget area
 * **Shuffle FAQs** — Surface different questions each visit

#### Free features

 * Display random content anywhere with the `[random_content]` shortcode
 * Use in posts, pages, sidebars, or widget areas
 * Organize content into groups for separate rotation sets
 * Control how many items display at once
 * Full WordPress editor support — text, images, HTML, shortcodes, embeds
 * Lightweight and fast with built-in caching
 * No coding required

#### Getting started

 1. Create entries under the Random Content post type
 2. Organize them into Groups (works like categories)
 3. Add `[random_content group_id="123"]` wherever you want random content to appear

That’s it. Your content rotates automatically on every page load.

#### Need more control?

**[Random Content Pro](https://randomcontentpro.com/)** gives you complete control
over what visitors see and when they see it:

 * **Scheduling** — Set start and end dates so content appears and disappears automatically.
   Run time-limited campaigns without touching your site.
 * **Visitor targeting** — Show different content based on user role, login status,
   UTM parameters, referrer, or page type.
 * **Frequency controls** — Prevent the same item from showing twice in a row. Set
   cooldown periods between displays.
 * **Weighted selection** — Assign weights (1–10) to each item. Higher weight = 
   shown more often. Perfect for A/B testing.
 * **Display rules** — Control visibility per group: logged-in only, specific roles,
   specific page types.
 * **Fallback content** — Define what shows when all items are filtered out. Never
   display an empty space.
 * **Automatic updates** — Get new features and fixes delivered directly to your
   WordPress dashboard.

[Learn more about Random Content Pro ](https://randomcontentpro.com/)

#### Shortcode usage

Display a random item from all entries:
 [random_content]

Display from a specific group:
 [random_content group_id=”64″]

Display multiple items at once:
 [random_content group_id=”13″ num_posts=”3″]

Load content via AJAX (useful for sites with page caching):
 [random_content group_id
=”64″ ajax=”yes”]

#### Widget usage

Navigate to Appearance  Widgets, add the Random Content widget to any sidebar, and
select a group from the dropdown. Leave the group empty to pull from all entries.

## Ảnh màn hình

 * [[
 * Adding the widget to a sidebar.
 * [[

## Cài đặt

 1. Upload the `random-content` folder to `/wp-content/plugins/`
 2. Activate the plugin through the Plugins menu in WordPress
 3. Go to Random Content  Add New to create your first entry
 4. Organize entries into Groups under Random Content  Groups
 5. Place the `[random_content]` shortcode in any post, page, or widget

## Hỏi đáp

### How do I group entries together?

Create a Group under Random Content  Groups, then assign entries to that group. 
It works just like post categories.

### How do I find the group ID?

Go to Random Content  Groups in your WordPress admin. The ID is listed in the table.

### Can I show more than one item at a time?

Yes. Use the `num_posts` parameter: `[random_content group_id="13" num_posts="3"]`.
In the widget, enter a number in the “Number of Posts” field.

### Can I schedule content to appear at specific times?

Scheduling is available in [Random Content Pro](https://randomcontentpro.com/). 
Set start and end dates for any content item, and it will appear and disappear automatically.

### Can I show different content to logged-in vs. logged-out users?

Yes — with [Random Content Pro](https://randomcontentpro.com/). Pro adds visitor
targeting based on user role, login status, UTM parameters, referrer domain, and
page type.

### Can I control how often a specific item is shown?

[Random Content Pro](https://randomcontentpro.com/) includes weighted selection (
assign weights 1–10 to each item) and frequency controls (prevent the same item 
from showing consecutively).

### What does the ajax parameter do?

By default, content is rendered server-side with the page for the best performance.
If your site uses full-page caching (e.g., WP Super Cache, W3 Total Cache, or a 
CDN), the random content may get cached and stop rotating. Add `ajax="yes"` to load
content dynamically after the page loads, bypassing the cache: `[random_content 
group_id="64" ajax="yes"]`.

### Will this slow down my site?

No. Random Content uses efficient PHP randomization and built-in transient caching.
No extra database queries on the front end beyond what’s needed.

### Does Random Content Pro require the free version?

No. Random Content Pro is a standalone plugin that includes everything from the 
free version plus all Pro features. If you have the free version installed, deactivate
it before activating Pro.

## Đánh giá

![](https://secure.gravatar.com/avatar/517833f1afc6f436ca8b77a9a60a173d0c70d539ea0ba8d6716f1c918a4940f9?
s=60&d=retro&r=g)

### 󠀁[one of THE BEST and easiest to use plugins!](https://wordpress.org/support/topic/one-of-the-best-and-easiest-to-use-plugins/)󠁿

 [jenomal](https://profiles.wordpress.org/jenomal/) 11 Tháng 10, 2025

I find this plugin so useful. I use it on my website to show different banners every
time someone visits the page, and it has been working perfectly for years! I’m very
happy. One of the best and easiest-to-use plugins!

![](https://secure.gravatar.com/avatar/6a193c661d72a7b2d7bd3f7b5cbc10c9f371ebea6c1efd41ca9851565de5fdcc?
s=60&d=retro&r=g)

### 󠀁[Love it](https://wordpress.org/support/topic/love-it-4164/)󠁿

 [jaeffekt](https://profiles.wordpress.org/jaeffekt/) 18 Tháng 4, 2024

I love this wonderful little plugin, THANK YOU !!!

![](https://secure.gravatar.com/avatar/2f69181fae92d5165c40a59d4aa63c5800937a45fe425b3a32046294076742b6?
s=60&d=retro&r=g)

### 󠀁[excellent](https://wordpress.org/support/topic/excellent-13125/)󠁿

 [bravium69](https://profiles.wordpress.org/bravium69/) 5 Tháng 12, 2023 1 trả lời

Excellent plugin. Thank you!

![](https://secure.gravatar.com/avatar/c725ecd7aa72251dcfaecb6a4664454fe64a40366e0daa5d5684823c4d7ea6e3?
s=60&d=retro&r=g)

### 󠀁[This is just fab! Use it for random reviews at my site, top notch!](https://wordpress.org/support/topic/this-is-just-fab-use-it-for-random-reviews-at-my-site-top-notch/)󠁿

 [Marc Bijl](https://profiles.wordpress.org/newoceans/) 7 Tháng 7, 2022 1 trả lời

Title says it all! 😉

![](https://secure.gravatar.com/avatar/65b272913669862ce899d1ca5530de2c8949b9043a232fe17704edb7dc4db839?
s=60&d=retro&r=g)

### 󠀁[Does What I Need, Perfectly](https://wordpress.org/support/topic/doe-what-i-need/)󠁿

 [Anonymous User](https://profiles.wordpress.org/anonymized-5790536/) 23 Tháng 12,
2021

I’m using it to display ads for one of my website’s store, on one of my related 
blogs. It proved to be perfect for dropping in the sidebar, wrapping in some HTML&
CSS, then having very simple link and image tag in the custom post. Perfect and 
thanks!

![](https://secure.gravatar.com/avatar/e9a9b11d99477028ce6c8088355630c4bd17e1fcce2ee3d1cc8f8d51d6f70edc?
s=60&d=retro&r=g)

### 󠀁[Great!](https://wordpress.org/support/topic/great-13884/)󠁿

 [aksoysanat](https://profiles.wordpress.org/aksoysanat/) 22 Tháng 10, 2021

It does exactly what it says. I haven’t encountered any bugs at the moment in WordPress
5.8.1. But please update this great plugin. We are concerned about version incompatible
plugins. Thanks.

 [ Đọc tất cả 33 đánh giá ](https://wordpress.org/support/plugin/random-content/reviews/)

## Người đóng góp & Lập trình viên

“Random Content” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Jeremy Green ](https://profiles.wordpress.org/endocreative/)

[Dịch “Random Content” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/random-content)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/random-content/), check 
out [SVN repository](https://plugins.svn.wordpress.org/random-content/), hoặc theo
dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/random-content/)
qua [RSS](https://plugins.trac.wordpress.org/log/random-content/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.6.5

 * Fixed compatibility issue with Elementor and other page builders where editor
   content would not display

#### 1.6.4

 * Fixed multiple posts displaying in chronological order instead of random order

#### 1.6.3

 * Fix bug for memory exhaustion from infinite recursion

#### 1.6.2

 * Restored server-side rendering as default for better performance
 * AJAX loading is now opt-in via ajax=”yes” shortcode parameter
 * JavaScript and REST API requests only load when AJAX mode is active

#### 1.6.1

 * Fixed AJAX content loading on sites without pretty permalinks

#### 1.6.0

 * Added AJAX-based content loading via REST API for full compatibility with page
   caching
 * Front-end JavaScript loads random content dynamically with noscript fallback
 * Updated Plugin URI to randomcontentpro.com

#### 1.5.0

 * Replaced ORDER BY RAND() with efficient PHP randomization
 * Added transient caching
 * Added multiple code improvements

#### 1.4.1

 * Ensure compatibility with latest WP version

#### 1.4.0

 * Add support for block editor
 * Update widget settings

#### 1.3.2

 * Update tested to version

#### 1.3.1

 * Fix shortcode output so that multiple posts will display

#### 1.3

 * Add rc_content filter for extending the plugin output in both the shortcode and
   the widget
 * Add content filter to widget output to allow for oembed support

#### 1.2

 * Add localization files for translation support

#### 1.1

 * Add num_posts parameter to old version of shortcode for backwards compatibility

#### 1.0

 * Update shortcode to [random_content] to help prevent conflicts with other plugins
 * Added a num_posts paramenter to the shortcode so that more than one post can 
   show at a time
 * Added the ability to not choose a group in a widget, even if a group exists
 * Added the ability to control the number of posts that show in the widget
 * Rebuilt the plugin using OOP principles based on the WordPress plugin boilerplate
 * Added plugin banner graphic
 * Updated screenshot image

#### 0.4

 * Update input text syntax in widget

#### 0.3

 * Add shortcode functionality.
 * Reset post data after widget query.

#### 0.1

 * First released into the wild.

## Meta

 *  Phiên bản **1.6.5**
 *  Cập nhật lần cuối **3 tuần trước**
 *  Số lượt cài đặt **3.000+**
 *  Phiên bản WordPress ** 5.0.1 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.9.4**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/random-content/)
 * Thẻ
 * [content rotation](https://vi.wordpress.org/plugins/tags/content-rotation/)[dynamic content](https://vi.wordpress.org/plugins/tags/dynamic-content/)
   [random content](https://vi.wordpress.org/plugins/tags/random-content/)[testimonials](https://vi.wordpress.org/plugins/tags/testimonials/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/random-content/advanced/)

## Đánh giá

 4.9 trên 5 sao.

 *  [  32 5-star reviews     ](https://wordpress.org/support/plugin/random-content/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/random-content/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/random-content/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/random-content/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/random-content/reviews/?filter=1)

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/random-content/reviews/)

## Những người đóng góp

 *   [ Jeremy Green ](https://profiles.wordpress.org/endocreative/)

## Hỗ trợ

Các lỗi đã xử lý trong vòng hai tháng gần đây:

     1 trên 1

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/random-content/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://www.endocreative.com)