NextGen Gallery: Tag Images

The NextGen Gallery plugin has a useful feature allowing images to be filtered for display using tags. Unfortunately there’s no obvious way to add a template tag. I had to make a site recently for the Eden Project Florilegium Society and needed to show captions on the tagged images. Fortunately I found a solution on the WordPress forums. Thanks trDiablo! I’m reproducing it here so I can find it again next time.

In the plugin’s lib folder shortcodes.php must be modified to include the template tag.

Similar additions must be made to nggfunctions.php.

Of course these changes will be lost in the next NextGen update.

Postscript: These days I no longer use the NextGen gallery on I’ve switched to the legacy version: NextCellent.