BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
Gallery Image Captions (GIC) icon
Possibly abandoned Tested up to 6.1.15 #82 in css

Gallery Image Captions (GIC)

With GIC, you can display the title, caption, and description image attributes. You can also change/filter the rendering HTML to whatever you want.

Active installs100+100+ tier
Downloads · 30d93▲ +60.3% vs prev. 30d
Rating5/51 reviews
Health score32/100At risk
All-time downloads4KSince Mar 2020
Support resolved—No recent threads
RequiresWP 5.3.2PHP 7.2+
Downloads · 7d26▲ +8.3% week over week
Our verdict

Consider an alternative

Gallery Image Captions (GIC) shows warning signs in 2026 — compare the alternatives below before installing. It runs on 100+ sites, is rated 5/5 and was last updated 4 years ago, and scores 32/100 on our health check.

  • Small user base (100+ active installs)
  • Very few reviews so far
  • No update in 3 years
  • Only tested up to WordPress 6.1 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

246Jul 14Aug 27Oct 11
Yesterday3
Daily average (1y)2
Peak day8Sep 10, 2026
Last 12 months615

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Gallery Image Captions (GIC) stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
css >100 10,000 Best css plugins →
filter >100 10,000 Best filter plugins →
gallery >100 4,320 Best gallery plugins →
html >100 10,000 Best html plugins →
shortcode >100 10,000 Best shortcode plugins →

Version adoption

Share of active sites per release.

  • 1.4100.0%

Rating breakdown

★★★★★★★★★★ 5 from 1 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Gallery Image Captions (GIC)

From the official readme · v1.4.0

Description

With GIC, you can display the title, caption, and description image attributes. You can also change/filter the rendering HTML to whatever you want.

After installing and activating GIC, write your filter and add the WordPress Gallery shortcode to your page.

If you’ve been dreaming of writing a filter to customise the gallery image captions, then this plugin is for you.

Visit the live demo page.

Motivation

The default WordPress gallery shortcode will only display the caption from the media’s attachment metadata. Sometimes it’s nice to display more like the title—even the description.

The GIC plugin overrides the WordPress gallery shortcode function to create a hook. With this hook you can do a little bit more than just displaying the caption.

Some premium themes hide the caption completely. This leaves photography lovers like me scratching their head and spending precious time cobbling together makeshift caption blocks.

Usage

Custom Filter For Displaying Captions

The crux of this plugin is the ability to filter the gallery image caption. The galimgcaps_gallery_image_caption hook makes this possible.

For the usage examples below, this is the filter used.

/**
 * Custom Filter for Gallery Image Captions
 *
 * Note: Avoid altering captiontag, selector, and itemtag.
 */
function mlc_gallery_image_caption($attachment_id, $captiontag, $selector, $itemtag) {

    $id = $attachment_id;

    // Grab the meta from the GIC plugin.
    $my_image_meta = galimgcaps_get_image_meta($id);

    /**
     * Here's where to customise the caption content.
     * 
     * This example uses the meta title, caption, and description. 
     * 
     * You can display any value from the $my_image_meta array. 
     * You can add your own HTML too.
     */
    return "<{$captiontag} class='wp-caption-text gallery-caption' id='{$selector}-{$id}'>" .
            "Title: " . $my_image_meta['title'] . "<br>" .
            "Caption: " . $my_image_meta['caption'] . "<br>". 
            "Description: ". $my_image_meta['description'] . 
        "</{$captiontag}></{$itemtag}>";

}
add_filter('galimgcaps_gallery_image_caption', 'mlc_gallery_image_caption', 10, 4);

Feel free to use this filter code as a starter template. After activating the GIC plugin, add the code above to your child theme’s functions.php file. Rename the function and tweak the return string to suit your needs.

New Filter To Get Custom Fields

/**
 * New GIC 1.4.0 filter for custom meta fields.
 */
function gic_add_custom_fields( $image_meta, $attachment ) {

    // This is how you add a custom fields to the array that
    // GIC uses to display captions.
    $image_meta['credit_text'] = $attachment->credit_text;
    $image_meta['credit_link'] = $attachment->credit_link;

    return $image_meta;
}
add_filter( 'galimgcaps_image_meta', 'gic_add_custom_fields', 10, 2 );

To use these two custom fields, your galimgcaps_gallery_image_caption would look something like this.

function mlc_gallery_image_caption($attachment_id, $captiontag, $selector, $itemtag) {

    $id = $attachment_id;

    // Grab the meta from the GIC plugin.
    $my_image_meta = galimgcaps_get_image_meta($id);

    // If there's credit, give it where it's due complete with link.
    $credit = $my_image_meta['description'] ? 
        "<br><strong>Credit</strong>: <a style='display: inline;' href='" . 
        $my_image_meta['credit_link'] . 
        "'>" . $my_image_meta['credit_text'] . "</a>" . "<br>" : 
        '';

    /**
     * With GIC 1.4.0 you can also add custom media attachment fields
     * to your captions.
     */
    return "<{$captiontag} class='wp-caption-text gallery-caption' id='{$selector}-{$id}'>" .
            "<strong>Caption</strong>: " . $my_image_meta['caption'] . "<br>" . 
            $credit .
            "</{$captiontag}></{$itemtag}>";

}
add_filter('galimgcaps_gallery_image_caption', 'mlc_gallery_image_caption', 10, 4);

Since v1.2.0, GIC automatically adds an Image ID column to your WordPress Media Library. This is to help you add the image IDs to your GIC shortcodes.

See where GIC automatically adds an Image ID column to your WordPress Media Library.

New in v1.4.0, GIC support custom media attachment fields.

Usage Example 1

Shortcode

For starters, let’s use a

<p></p> 

tag for the caption tag.

[gallery size="full" columns="1" link="file" ids="114" captiontag="p"]

Styling

Let’s override the generated styles with our own style for one particular image.

/* Targeting a Specific Image */

/* Add some padding all around. */
#gallery-1 .gallery-item, 
#gallery-1 .gallery-item p {
    padding: 1%;
}

/* Add some moody background with typewriter font. */
#gallery-1 .gallery-item {
    color: whitesmoke;
    background-color: black;
    font-size: 1.25rem;
    font-family: Courier, monospace;
    text-align: left !important;
}

Usage Example 2

Shortcode

A 2 column x 1 row gallery with large size images using an H4 for the caption.

[gallery size="large" columns="2" link="file" ids="109,106" captiontag="h4"]

A 3 column x 1 row gallery with medium size images using a blockquote for the caption.

[gallery size="medium" columns="3" link="file" ids="109,106,108" captiontag="blockquote"]

Did you notice that we are using

<blockquote></blockquote> 

in the second shortcode? Let’s give it try just for kicks.

Styling

/* 1. Style the H4 Used in the Caption Example */
h4 {
    color: #777777 !important;
    font-size: 1.2rem !important;
    font-family: Helvetica, Arial, sans-serif !important;
}

/* 2. Help Align the Blockquote */
#gallery-3 .gallery-caption {
    margin-left: 40px !important;
}

Responsive CSS Example

I recommend adding the following media queries if you use galleries with more than one image. The two media queries below will stack 2×1 and 3×1 galleries into a 1 column x n rows or 2 column x n rows as needed.

/* Media Queries for Responsive Galleries */

/**
 * Styling based on article "How To: Style Your WordPress Gallery"
 * by Par Nicolas.
 * 
 * https://theme.fm/how-to-style-your-wordpress-gallery/
 */

/* Mobile Portrait Breakpoint - 1 column */
@media only screen and (max-width: 719.998px) {
    .gallery-columns-2 .gallery-item,
    .gallery-columns-3 .gallery-item { 
     width: 100% !important; 
  }
}

/* Mobile Landscape and Tablet Breakpoints - 2 columns */
@media only screen and (min-width: 720px) and (max-width: 1024px) {
  .gallery-columns-3 .gallery-item { 
     width: 50% !important; 
  }
}

Installation

  1. Upload the plugin files to the /wp-content/plugins/PLUGIN-NAME directory, or install the plugin through the WordPress Plugins page directly.
  2. Activate the plugin through the Plugins page in WordPress.

Frequently asked questions

What media metadata can I insert into my captions?

Here’s the list of metadata with their array index you can insert into your captions. Alternative Text [‘alt’] Title [‘title’] Caption [‘caption’] Description [‘description’] Attachment URL [‘href’] Image URL [‘src’] Starting with version 1.4.0, you can pull custom media attachment fields right into your captions!

How do I get the file (post) IDs for the shortcode?

As of v1.2.0, you can hit the list icon in your Media Library and a sortable column of image IDs will display on the far right. This is much easier and faster than manually (see below) looking them up if you have a lot of images for your gallery. You can also manually find the image post IDs by selecting the image in the Media Library and hovering over the Edit link. You’ll need to visually pick out the post=85 for example in the URL preview.

Changelog

You can now display any custom fields you've got in your gallery image captions.

1.4.0

  • Fixed an issue where the gallery layout is messed up if GIC is active but there’s no GIC filter yet.
  • Added a new galimgcaps_image_meta filter to support custom media attachment fields.

1.3.0

  • Changes for WordPress 5.6.

1.2.0

  • Added an Image ID column to the Media Library to help find the image file IDs for the GIC shortcodes.

1.1.0

  • Slight refactoring and documentation updates

1.0.1

  • Readme documentation updates. New author URI in source PHP file.

1.0

  • First release.

Full changelog on WordPress.org →

Screenshots

WordPress Gallery Before GIC
WordPress Gallery Before GIC
WordPress Gallery Before GIC
WordPress Gallery Before GIC
Displaying title, caption, and description with moody styling using GIC
Displaying title, caption, and description with moody styling using GIC
More styling examples using GIC: centre justified text and even using blockquote styling
More styling examples using GIC: centre justified text and even using blockquote styling
With GIC, you can even insert links to the image file and attachment Page!
With GIC, you can even insert links to the image file and attachment Page!
Write media queries to control how to display captions for different devices
Write media queries to control how to display captions for different devices
Responsive for mobile displays
Responsive for mobile displays
Another example of displaying title, caption, and description with moody styling using GIC
Another example of displaying title, caption, and description with moody styling using GIC
Washington Post style captions using GIC
Washington Post style captions using GIC

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Gallery Image Captions (GIC) alternatives

All css plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager WPCode Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code… by Syed Balkhi 3M+ ★★★★★★★★★★ 4.9 (1.9K) 4 days ago 95
2 Code Snippets Code Snippets An easy, clean, and simple way to enhance your site with code snippets. by Code Snippets Pro 1M+ ★★★★★★★★★★ 4.7 (509) 1 month ago 91
3 Simple Custom CSS Plugin Simple Custom CSS Plugin Add Custom CSS to your WordPress site without any hassles. by John Regan 100K+ ★★★★★★★★★★ 4.7 (159) 2 years ago 51
4 Blocks Animation: CSS Animations for Gutenberg Blocks Blocks Animation: CSS Animations for Gutenberg Blocks Add CSS animations and scroll effects to any Gutenberg block. Choose from fade, slide, zoom… by Hardeep Asrani 90K+ ★★★★★★★★★★ 4.7 (71) 2 weeks ago 90
5 Widget CSS Classes Widget CSS Classes Add custom classes and ids plus first, last, even, odd, and numbered classes to your… by Jory Hogeveen 80K+ ★★★★★★★★★★ 4.9 (74) 2 years ago 56
6 Simple CSS Simple CSS Add CSS to your website through an admin editor, the Customizer or a metabox for page/post… by Tom 80K+ ★★★★★★★★★★ 4.9 (60) 1 year ago 58
7 WP Add Custom CSS WP Add Custom CSS Add custom css to the whole website and to specific posts and pages. by Daniele De Santis 60K+ ★★★★★★★★★★ 4.8 (89) 1 year ago 56
8 Clear Cache for Me Clear Cache for Me Purges cache on WPEngine, W3TC, WP Super Cache, WP Fastest Cache when widgets, menus… by webheadcoder 40K+ ★★★★★★★★★★ 4.8 (29) 4 months ago 75
9 WP-SCSS WP-SCSS Compiles .scss files to .css and enqueues them. by Connect Think 40K+ ★★★★★★★★★★ 4.3 (61) 7 months ago 60
10 Visual CSS Style Editor Visual CSS Style Editor Style your WordPress site visually. Discover the most popular front-end design plugin! Try… by YellowPencil 30K+ ★★★★★★★★★★ 4.1 (90) 2 months ago 83

FAQ

Gallery Image Captions (GIC): quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Oct 12, 2026

Is Gallery Image Captions (GIC) free?

Yes. Gallery Image Captions (GIC) is free to download and use from the official WordPress.org plugin directory.

Is Gallery Image Captions (GIC) safe to use in 2026?

Gallery Image Captions (GIC) shows warning signs in 2026 — compare the alternatives below before installing. It runs on 100+ sites, is rated 5/5 and was last updated 4 years ago, and scores 32/100 on our health check.

How many websites use Gallery Image Captions (GIC)?

Gallery Image Captions (GIC) is active on 100+ WordPress websites and has been downloaded 3,967 times since it launched in March 2020. It was downloaded 93 times in the last 30 days.

Does Gallery Image Captions (GIC) work with WordPress 7.1?

Gallery Image Captions (GIC) is officially tested up to WordPress 6.1.15, while the latest release is 7.1.3. It may still work, but try it on a staging site first.

What PHP version does Gallery Image Captions (GIC) need?

Gallery Image Captions (GIC) requires PHP 7.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Gallery Image Captions (GIC) last updated?

The latest version, 1.4.0, was released on December 18, 2022 (4 years ago).

Who makes Gallery Image Captions (GIC)?

Gallery Image Captions (GIC) is developed and maintained by mark l chaves.

What are the best alternatives to Gallery Image Captions (GIC)?

The most popular alternatives to Gallery Image Captions (GIC) are WPCode (3M+ installs), Code Snippets (1M+ installs) and Simple Custom CSS Plugin (100K+ installs).

Powered by PageForge

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.