Enhanced WordPress gallery shortcode plugin

enhanced wordpress gallery shortcode
UPDATE: This plugin is not maintained for a long time now, no use for it any longer. If you think you might need something like it, feel free to drop me a message.

Enhanced WordPress Gallery plugin is a simple plugin that changes the core WordPress gallery 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 it to /wp-content/plugins/ directory of your WP installation. Go to dashboard/plugins and activate the plugin. That is all, no options to configure, no overhead code. If an image has any of the fields, the plugin will just display them under the image.

Enhanced WordPress Gallery plugin I made after the 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 a shortcode to add the buy button. This way I can use one of the default media library fields to insert the shortcode. This plugin adds a gallery display for all image info, title, alt, caption, and description.
Also if you want to use the fancy box (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 the effect to function (I intend to incorporate this into a plugin in next version as a simple checkbox option). What this function does is it just adds classes to the link needed for the fancy box 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 the gallery is displayed:

Enhanced wordpress gallery shortcode

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

Share This Post

Roni Marinkovic

Roni Marinkovic

Codeable Expert WordPress developer with a passion for optimizing WordPress websites. Spending time creating functional, high-performing WordPress websites for 15 years and websites for 24 years! I'm either windsurfing, scuba diving, hiking, or riding a motorbike when not working.

More To Explore

Core Web Vitals - Lighthouse Scoring Calculator
Website Speed

Core Web Vitals explained

Core Web Vitals are part of Google’s Web Vital measurements using the Lighthouse tool, and they apply to all pages. The current CWV relevant measurements

Do You Want To Boost Your Business?

drop me a line and keep in touch

Contact Roni