ANZ NextGen Random Pix

This WordPress Plugin will generate a random image (or several random images) from your NextGEN installation anywhere you call it on your site, not just the sidebar.

Download

Download ANZ NextGEN Random Pix v. 0.1

Compatibility

This plugin works with WordPress 2.5.1 and NextGEN Gallery 0.96.

License

Creative Commons License
This work is licenced under a Creative Commons Licence.

Installation

  1. Upload anz-random-pix.php to your /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

Usage

Place the following code where you wish the random picture(s) to appear:

<?php if (function_exists(‘anz_ngg_random_pix’)) {
echo anz_ngg_random_pix();
} ?>

This works if placed on page or post templates, but has not been tested if you place it in post content.

Customisation

A few customisation options are available by editing the plugin directly:

$limit
Change that to limit the number of random images you wish displayed. Default is 1
$width
Determines the width of the image to be displayed. Default is 125
$height
Determines the height of the image to be displayed. Default is 100
$beforePix
Generates “stuff” to go before each generated image. Default is an opening paragraph tag
$afterPix
Generates “stuff” to go after each generated image. Default is a closing paragraph tag

Support & Update

We offer no support if you wish to use this plugin.

This plugin is unlikely to be updated regularly.