=== Plugin Name === Contributors: dutchguys Tags: random, image, images, picture, pictures, gallery, widget Requires at least: 2.5 Tested up to: 3.0.1 Stable tag: 1.01 Displays a random image from one of the children of a named page, i.e. Gallery -> 2008 -> Holiday -> picture1 == Description == In my blog I use pages for the gallery. I have a main index Gallery that has children for each year which contain the actual gallery pages. I wanted to display a random image from this gallery and couldn't find a plugin to do it so I wrote my own. Usage is really simple: The following line in your template ` 'Gallery', 'class' =>'alignleft', 'x' => 125, 'y' => 125)); ?>` or just use the widget. *title* is the name of the index page, no pictures will be taken from this page, only from childpages. *class* is an optional class to assign to the image *x* is the width to assign to the thumbnail *y* is the height to assign to the thumbnail It will output the thumbnail for this picture with the given dimensions, linked to the page it belongs to. == Installation == Installation is easy: 1. Upload `DG_Random_Image` folder and it's contents to `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Place ` 'Gallery', 'class' =>'alignleft', 'x' => 125, 'y' => 125)); ?>` in your templates == changelog == = 1.01 = * Cleanup of extra folder * Even easier to use with a widget = 1.0 = Initial Release