Random SimpleGal Image
Download Random Simplegal Image (Version 1.0)
Random Simplegal Image has been downloaded 464 times.
What is it?
The stunningly obviously named Random SimpleGal Image displays a random image from your SimpleGal install anywhere on your page – I’m using it in the sidebar, but you could put it in post content or anywhere else that takes your fancy.
Installation
- First, make sure you’re running the latest version of SimpleGal.
- Download and extract the
zipfile and uploadrandom-simplegal-image.phpto yourwp-content/pluginsdirectory. - Activate the plugin in your control panel.
- Edit the appropriate template file –
sidebar.php, for instance – and insert<?php random_sg_image() ?>where you’d like to display a random image. - By default, the plugin will fetch images from any gallery. You can optionally specify just one gallery to choose from; for example,
<?php random_sg_image('foo') ?>would display random images from thefoogallery. - That’s it!
New!
Customise the placement of the random image and include and exclude galleries with a whitelist and blacklist with the new Random SimpleGal Image widget.
Separate whitelist/blacklist entries with a comma, and use * for wildcards.
Download Random Simplegal Image Widget (Version 1.0)
Random Simplegal Image Widget has been downloaded 1,657 times.
Requires the Widget plugin from Automattic and a compatible theme.
Discuss
You can discuss any problems or post suggestions for future upgrades to Random SimpleGal Image – or any of my other plugins – on the mailing list available here. Come join in!
Changelog
2006-01-20: Initial Release. Parsing of image/gallery meta data will come soon.