The [random_images] shortcode displays random attached images.
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');
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
0 of 1 support threads in the last two months have been resolved.
Got something to say? Need help?