Plugin Directory

!This plugin hasn’t 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.

Random Images

The [random_images] shortcode displays random attached images.

How can I use the random_images shortcode text widgets?

To enable the random_images shortcode in text widgets, add this to the functions.php file in your theme or child theme.

 * If the Random Images plugin is active, allow the random_images shortcode to work in text widgets
if ( method_exists( 'Random_Images_Plugin', 'random_images' ) )
    add_filter('widget_text', 'Random_Images_Plugin::random_images');

How can I use random images in a WordPress theme?

This example will display a set of random images from a theme file:

if ( method_exists( 'Random_Images_Plugin', 'random_images' ) )
   echo Random_Images_Plugin::random_images( array( 'size' => 'thumbnail', 'total' => 9 ) );

Requires: 2.8 or higher
Compatible up to: 3.6.1
Last Updated: 2013-7-21
Active Installs: 300+


2.5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.