Random Content Shortcode

Simple Shortcode for displaying random content on your site.

Author:Nicolas Jonas (profile at wordpress.org)
WordPress version required:4.5.0
WordPress version tested:5.0.0
Plugin version:2.1.0
Added to WordPress repository:08-09-2016
Last updated:05-02-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:https://nextgenthemes.com/plugins/random-cont...
Total downloads:2 888
Active installs:100+
plugin download
Click to start download

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 like this:

[random_content separator="|||"]
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

Aenean commodo ligula eget dolor. Aenean massa.
|||
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.
|||
Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate

Aenean commodo ligula eget dolor. Aenean massa.
[/random_content]

Or have a compact single line like this:

[random_content separator="#"]One#Two#Three#Four[/random_content]

FAQ
ChangeLog