Simple Shortcode for displaying random content on your site.
As of April 2026, Random Content Shortcode is a WordPress random plugin with 90 active installations and a 5/5 rating from 1 reviews. It has been downloaded 3.6K+ times in total. Requires WordPress 4.5.0+ and PHP 5.6+. Available on WordPress.org since 2016. Last updated 8 years ago — may have compatibility concerns. Top alternative: Random Post Plugin – Redirect URL to….
Check out the plugins page to see it in action.
Simple Shortcode for displaying random content on your site. Just wrap the shortcode arround the lines of content you want one to be displayed at random.
The following example will display one of the two videos or one of the two lines of text, empty lines will ignored.
[random_content] A line with some text in it. [arve url="https://youtu.be/b1rTZJxEnAQ" title="A Video Embedded with ARVE" maxwidth="350"] A bold line. [arve url="https://vimeo.com/124400795" title="A Video Embedded with ARVE" maxwidth="400"] [/random_content]
By default the newline \n character is used to separate content. You can also choose another separator, do this if you have problems with the default or like to have random content with multiple lines on one piece li…
| WordPress | 4.5.0+ requiredTested up to 5.0.0 |
| PHP | 5.6+ required |
[random_content] shortcode because I read that dashes work but are not recommended. [random-content] still works for backwards compatibility but you should use [r…Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.