Enhanced WordPress Gallery plugin is simple plugin that changes core WordPress galery shortcode to display all image properties, namely it displays Title, Caption and Description of the image if those fields are entered for images in native WordPress media management. Just download the plugin zip file and upload to /wp-content/plugins/ directory of your WP instalation. Go to dashboard/plugins and activate the plugin. That is all, no options to configure, no overhead code. If image has any of the fields, plugin will just display them under the image.

Enhanced WordPress Gallery plugin I made after attempt to use original WordPress gallery shortcode to create galleries and integrate Paypal shopping cart (using WP simple Paypal shopping cart plugin). I needed to somehow display shortcode to add buy button. This way I can use one of the default media library fields to insert shortcode. This plugin adds galery display for all image info, title, alt, caption and description.
Also if you want to use fancybox (I recommend using Fancybox for WordPress) or some other lightbox effect on images, you will need to add this bit of code to your template functions file insert needed class elements for effect to function (I intend to incorporate this into plugin in next version as a simple checkbox option). What this function does is it just adds classes to link needed for fancybox to work.

function add_class_attachment_link($html){
$postid = get_the_ID();
$html = str_replace('<a','<a class="fancybox" rel="gallerygroup"', $html);
return $html;

If you are using some other lightbox library just change the class names on line 3.

class="fancybox" rel="gallerygroup"

This is how galery is displayed:

enhanced wordpress gallery shortcode

This is work in progress, as I intend to add plugin options page and include extra functionality found on my website photo galleries.
You can download plugin here: Enhanced WordPress Gallery
If you find this plugin useful, feel free to buy me a coffee 🙂

Leave a Reply

Your email address will not be published.