WordPress.org

Ready to get started?Download WordPress

Plugin Directory

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
Downloads: 1,407

Ratings

2 stars
2.5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1
100,1,1
0,1,0