As of April 2026, Random Gallery is a WordPress images plugin with 200 active installations and a 4.5/5 rating from 11 reviews. It has been downloaded 6.6K+ times in total. Requires WordPress 3.0.1+ and PHP false+. Available on WordPress.org since 2015. Last updated 3 years ago — may have compatibility concerns. Top alternative: Autoptimize.
Random Gallery lets you display a different subset of your images every time your page is refreshed. Just tell it which ones you want it to pick from and how many you want to show at a time.
Random Gallery works with an old fashioned shortcode. You specify the pool of images with the ids or category parameter. Then you specify how many you want to show with the shownum parameter.
Here’s an example of the ids method:
[random-gallery ids='101,102,103,104,105' shownum='3']
Note there are five images in the list but only three will be shown at a time.
And here is an example of the category method:
[random-gallery category='myCategory' shownum='3']
Random Gallery can handle the ordinary Gallery shortcode parameters columns, size, and link:
[random-gallery category='myCategor…| WordPress | 3.0.1+ requiredTested up to 6.2.9 |
| PHP | false+ required |
Adds support for PHP 8. Drops support for Gallery shortcode parameter ‘type’. Updates the readme and testing.
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.