Title: Random Content
Author: Jeremy Green
Published: <strong>19 Deireadh Fómhair, 2012</strong>
Last modified: 23 Márta, 2026

---

Search plugins

![](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

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

[Download](https://downloads.wordpress.org/plugin/random-content.1.6.5.zip)

 * [Details](https://ga.wordpress.org/plugins/random-content/#description)
 * [Reviews](https://ga.wordpress.org/plugins/random-content/#reviews)
 *  [Installation](https://ga.wordpress.org/plugins/random-content/#installation)
 * [Development](https://ga.wordpress.org/plugins/random-content/#developers)

 [Support](https://wordpress.org/support/plugin/random-content/)

## Description

**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.

## Screenshots

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

## Installation

 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

## FAQ

### 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.

## Reviews

![](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 Deireadh Fómhair, 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 Aibreán, 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 Nollaig, 2023 1 reply

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 Deireadh an tSamhraidh,
2022 1 reply

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 Nollaig,
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 Deireadh Fómhair, 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.

 [ Read all 33 reviews ](https://wordpress.org/support/plugin/random-content/reviews/)

## Contributors & Developers

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

Contributors

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

[Translate “Random Content” into your language.](https://translate.wordpress.org/projects/wp-plugins/random-content)

### Interested in development?

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

## Changelog

#### 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

 *  Version **1.6.5**
 *  Last updated **3 seachtaine ago**
 *  Active installations **3,000+**
 *  WordPress version ** 5.0.1 or higher **
 *  Tested up to **6.9.4**
 *  Language
 * [English (US)](https://wordpress.org/plugins/random-content/)
 * Tags
 * [content rotation](https://ga.wordpress.org/plugins/tags/content-rotation/)[dynamic content](https://ga.wordpress.org/plugins/tags/dynamic-content/)
   [random content](https://ga.wordpress.org/plugins/tags/random-content/)[testimonials](https://ga.wordpress.org/plugins/tags/testimonials/)
 *  [Advanced View](https://ga.wordpress.org/plugins/random-content/advanced/)

## Ratings

 4.9 out of 5 stars.

 *  [  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)

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

## Contributors

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

## Support

Got something to say? Need help?

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

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.endocreative.com)