Random Gallery lets you display a random selection of photos from an arbitrarily large list.
|Author:||David Greenwold (profile at wordpress.org)|
|WordPress version required:||3.0.1|
|WordPress version tested:||4.4|
|Added to WordPress repository:||23-03-2015|
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.
|Total downloads:||1 673|
Click to start download
Give Random Gallery a list of photos and a number. It will pick that number of photos randomly from your list and send them off to a normal gallery. It works great with Jetpack's Tiled Galleries.
The easiest way to use Random Gallery is to insert a normal gallery into your page. Be sure to select all of the photos you want Random Gallery to draw from. In the editor, you'll see something like this:
Then, all you have to do is change "gallery" to "random-gallery" and add shownum to the end, like this:
[random-gallery ids="1,2,3,5,8,13,21" shownum="3"]
You can also use the standard WP Gallery options: type, columns, size, and link.
In this example, there are seven photos in the list, but only three will be shown at a time.
There's nothing too fancy under the hood, so Random Gallery is pretty much future proof. Check it out and let me know what you think. Thanks!
What if I have a question?
I’d be happy to help! firstname.lastname@example.org
What if I have a suggestion?
That would be most welcome! email@example.com
What if I find a bug?
Please let me know right away! firstname.lastname@example.org
Added support for type, columns, size, and link.
Miscellaneous code and documentation improvements.
Fixed bug that was forcing the gallery to the top of the page.
Added header and comments. Submitted to wp.
Just the code. Made for and deployed on client’s website.