Plugin Directory

DG Random Image

Author: Menno Dekker

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: 'Gallery', 'class' =>'alignleft', 'x' => 125, 'y' => 125); ?>

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.

Download

FYI

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

Log in to vote.

100,1,1

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(3 ratings)