WordPress plugin
Random Content Pro
Random Content Pro is a standalone WordPress plugin for rotating content across a site. Create entries with the Random Content post type and WordPress editor, then organize them into groups for separate rotation sets. Entries support text, images, HTML, shortcodes, and embeds. Use groups for testimonials, promotions, calls to action, tips, quotes, or frequently asked questions.
From content entries to page shows
Random Content Pro is a standalone WordPress plugin for rotating content across a site. Create entries with the Random Content post type and WordPress editor, then organize them into groups for separate rotation sets. Entries support text, images, HTML, shortcodes, and embeds. Use groups for testimonials, promotions, calls to action, tips, quotes, or frequently asked questions.
A shortcode or the Random Content widget selects entries for posts, pages, sidebars, or widget areas. The selection can vary between page loads. Built-in transient caching and PHP randomization support server-side show by default. If full-page caching or a CDN keeps showing a previously rendered selection, the shortcode's AJAX option loads content after the page loads.
Eligibility and selection controls
Set start and end dates on individual entries to control when they can appear. Visitor targeting can use user role, login status, UTM parameters, referrer, or page type. Separately, group display rules can restrict visibility to logged-in visitors, specific roles, or specific page types.
- Frequency controls can prevent the same entry from appearing twice in a row and set cooldown periods between displays.
- Assign each item a weight from 1 to 10. Higher-weight entries appear more often.
- Choose fallback content for cases where filtering removes every available item.
Shortcode and widget display
Use [random_content] to choose from all entries, or add a group ID to select from a specific set, such as [random_content group_id="64"]. To display several entries at once, set the num_posts parameter, for example [random_content group_id="13" num_posts="3"]. Add ajax="yes" to load the selection after the page loads when full-page caching would otherwise keep it unchanged.
To use the widget, go to Appearance → Widgets, add the Random Content widget to a sidebar, select a group, and set the number of posts. Leave the group empty to draw from all entries.
Setup
- Create entries under the Random Content post type.
- Create groups under Random Content → Groups and assign entries to them.
- Add a shortcode to a post, page, or widget area, or place the Random Content widget.
- Set schedules, targeting, frequency, weights, display rules, and fallback content as needed.
Random Content Pro is standalone and includes the core random content capabilities. If the free version is installed, deactivate it before activating Pro. Automatic updates deliver new capabilities and fixes through the WordPress dashboard.