BACK TO DIRECTORY

FX random image

by AivarasFX

3.7
(3 ratings)

Plugin creates widget that displays one random image from current page or post attached images, or from any page or post set by ID. You can set size of image to display.

Displays a random image from post or page you specify. Plugin creates FX-Random-image widget. Use widget to add image to sidebar or add <?php FX_Random_Image($pageID, $link, $size); ?> function to theme. $pageID is page/post ID from there to take images, if $link = true adds link to image, $link = false no link on image, $size – image size (‘thumbnail’, ‘medium’ or ‘large’). Example <?php FX_Random_Image(1, false, 'large'); ?>

Plugin Details

Active Installs
10
Total Downloads
4,087
Version
1.0.2
Requires WP
2.8
Requires PHP
Tested Up To
3.0.5
Added
2011-05-20
Last Updated
2011-05-20 1:05pm GMT

Ratings

5
2
4
0
3
0
2
0
1
1