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 ANZ NextGEN Random Pix v. 0.1


This plugin works with WordPress 2.5.1 and NextGEN Gallery 0.96.


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


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


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.


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

Change that to limit the number of random images you wish displayed. Default is 1
Determines the width of the image to be displayed. Default is 125
Determines the height of the image to be displayed. Default is 100
Generates “stuff” to go before each generated image. Default is an opening paragraph tag
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.