Gallery Custom Links icon

Gallery Custom Links

Attach custom URLs to individual gallery images for linking purposes. Compatible with WordPress native galleries, Gutenberg, Meow Gallery, and other gallery plugins, with a PF Score of 85.7 and top 1% global ranking.

  • #402 Global Rank
  • 30K+ active installs
  • 4.7/5 206 ratings
  • Since 2018 8 years active

PF Score (About PF Scores)

PF Score is not a quality guarantee. It is a ranking based on available public signals.

Platinum86.7
Platinum
Gold
Silver
Bronze
Low

Score Breakdown

74.6
Popularity 40% 30K+ active installs
91
Reputation 35% 4.7★ from 206 ratings
100
Freshness 25% Updated yesterday

No active penalty — 1 historical CVE, resolved — details

Download Trends

Loading download data…

Vulnerabilities

1 Total
1 Patched
0 Active
100% Resolved rate

Vulnerability data provided by Wordfence Intelligence (opens in a new tab). CVE data: Copyright 1999–2026 The MITRE Corporation. CVE Terms of Use (opens in a new tab).

Support Statistics

1 Support threads
0 Resolved
0% Resolution rate

About Gallery Custom Links

Gallery Custom Links allows you to link images to a specified URL. Tested with WordPress Gallery, Gutenberg, the Meow Gallery and others.

Gallery Custom Links allows you to link images from galleries to a specified URL. Tested with WordPress Gallery, Gutenberg, the Meow Gallery and others. The official page is here: Gallery Custom Links.

Usage

Two fields are added to your images, in your Media Library: Link URL and Link Target (but also, Link Rel and Arial Label). If, at least, the Link URL is set up, this image will link to that URL every time it is used within a gallery. Lightbox will be automatically disabled for those images.

To do this, the Gallery Custom Links needs to analyze/rewrite your content. Depending on your WordPress, you can pick the most appropriate method (known as engine).

  • HtmlDomParser: Very reliable. It will rewrite your HTML so that the links are hardcoded.
  • DiDom: Same as HtmlDomParser but faster. However, your HTML needs to be perfectly valid.
  • Javascript: This is the fastest, but the links won’t be hardcoded. Only the visitor will experience the links.

Compatibility

It currently works with the native WP Gallery, the Gutenberg Gallery, and the Meow Gallery. It should actually work with any gallery plugin using the ‘gallery’ class and Responsive Images (src-set). Let me know if you would like more galleries to be supported, it should be easy.

Filters

You can optimize (run the plugin only on the pages where you need it) and support more galleries (through CSS classes) easily by using filters. To know more about this, visit the official page, here: Gallery Custom Links.

Thanks

The motivation to build this plugin came from my users who had issues trying to use WP Gallery Custom Links. I realized that this plugin was working extremely well with the standard gallery, but would require too much rewriting for Gutenberg and other galleries, hence the creation of this plugin. I hope it will help.

Languages: English.

Screenshots

The fields.

The fields.

Ratings & Reviews

Recent Reviews

Loading reviews…

View all reviews on WordPress.org (opens in a new tab)

Changelog

2.3.2 (2026/08/15)

  • Add: Per-page linking, so the same media can point to different targets on different pages.
  • Fix: Links being ignored when a lightbox was active, including the WordPress built-in one.
  • Fix: Links in galleries loaded dynamically.
  • Update: Common library with the new dashboard, a notice modal replacing native browser dialogs, and AI site analysis.
  • 🎵 Discuss with others about Gallery Custom Links on the Discord.
  • 🌴 Keep us motivated with a little review here. Thank you!
  • 🥰 If you want to help us, check our Patreon. Thank you!

2.3.1 (2026/05/30)

  • Add: Option to skip linking when the target URL matches the current page.
  • 🎵 Discuss with others about Gallery Custom Links on the Discord.
  • 🌴 Keep us motivated with a little review here. Thank you!
  • 🥰 If you want to help us, check our Patreon. Thank you!

2.3.0 (2026/04/25)

  • Fix: Ensure plugin settings now save and update correctly.
  • Update: Improve multisite compatibility.
  • 🎵 Discuss with others about Gallery Custom Links on the Discord.
  • 🌴 Keep us motivated with a little review here. Thank you!
  • 🥰 If you want to help us, check our Patreon. Thank you!

2.2.8 (2025/12/03)

  • Fix: Corrected deprecated button classes.

2.2.6 (2025/10/01)

  • Fix: Resolved DiDom engine crash when parent element is a Document object.
  • Fix: Addressed security vulnerabilities by implementing input sanitization and output escaping.

2.2.5 (2025/09/20)

  • Update: Fresh components.
  • Update: Updated Common library.

2.2.4 (2025/07/03)

  • Update: Common libraries have been updated to improve stability and performance.

2.2.3 (2025/02/02)

  • Fix: New URL sanitization was causing issues with some URLs.

2.2.2 (2025/01/04)

  • Fix: Sanitize URLs to avoid JS injections.
  • Info: If you like the plugin, your reviews are welcome here. Thank you 🙂

2.2.1 (2024/11/04)

  • Fix: Fixed common libs.
  • Fix: Missing properties (PHP 8.1), non-dynamic properties.
  • Update: Remove the dependency to WordPress scripts.

2.2.0 (2024/06/03)

  • Add: Updated to the latest libs.

2.1.9 (2024/04/06)

  • Add: Javascript method to rewrite the links. It is the fastest method, but the links won’t be hardcoded. Only the visitor will experience the links.

2.1.8 (2023/10/23)

  • Fix: Addressed and prevented timeouts caused by infinite loops associated with ob levels.
  • Fix: Repaired malfunctioning NekoUI components for improved user experience.

2.1.7 (2023/09/10)

  • Add: Support for the new version of the Meow Gallery 5 (it will require the version 5.0.1 of the Meow Gallery, which is not released yet but coming soon).

2.1.6 (2023/06/11)

  • Update: Lighter plugin.
  • Update: Fresh packages.
  • Update: Removed useless dependencies.

2.1.5 (2022/10/24)

  • Update: No need for jQuery anymore.

2.1.4 (2022/10/05)

  • Add: Some files were missing for the libraries autoload.

2.1.3 (2022/09/06)

  • Add: Added column in the Media Library (to edit faster).

2.1.1 (2022/07/27)

  • Fix: Faster UI.
  • Fix: Increased compatibility.

2.1.0 (2022/05/17)

  • Fix: Avoid useless logs.

2.0.9 (2022/03/18)

  • Fix: Compatibility with the latest version of Gutenberg Gallery.

2.0.8 (2022/03/18)

  • Update: Latest versions of DiDom and HTML Dom Parser (might be better and faster).
  • Update: Latest version of Neko UI.

2.0.6 (2021/09/30)

  • Update: Fix for PHP 7.4+.

2.0.5 (2021/08/31)

  • Update: Enhanced security and updated common librairies.

2.0.4 (2021/07/05)

  • Update: Refresh the UI libraries and common librairies to ensure compatibility with other plugins.

2.0.3 (2021/03/01)

  • Update: New Meow Common (which is needed for compatibility with other plugins).

2.0.2

  • Fix: Autoload was missing.

2.0.1

  • Fix: There were a few issues in this new version.
  • Update: New modernized admin.

1.2.7

  • Add: Remove warnings for PHP 7.4.
  • Update: New versions of DiDom and the Simple HTML DOM Parser.

1.2.6

  • Add: Because we love the W3C, the title has been added to the link.

1.2.5

  • Fix: Avoid errors in the admin.
  • Fix: Add another way to resolve the image ID if none found (https://wordpress.org/support/topic/issue-with-page-links-on-images/), let’s see how it goes.

1.2.3

  • Add: Label for CTA buttons.
  • Fix: Moved the position of the CTA buttons in the DOM.

1.2.2

  • Add: CTA Buttons for Meow Gallery, Native Galleries and Gutenberg Galleries.
  • Add: Filter to… filter which images are actually managed by the plugin 🙂
  • Fix: Hopefully, the Reusable Blocks aren’t broken anymore in the editor (I couldn’t replicate the bug on this new version).

1.2.0

  • Add: This was asked to me a lot, so I have adding the settings in order to change the parameters of the plugin easily. It will be much easier to make it faster now.

1.1.5

  • Fix: Simpler and probably better REST detection.

1.1.4

  • Fix: Attempt to fix the way autoload is working.

1.1.3

  • Fix: Avoid analyzing the html content if the parser returned a boolean or an empty string.

1.1.2

  • Add: Rel can now be set to nofollow.

1.1.1

  • Update: Defaults set to Output Buffering + HtmlDomParser. Those settings work for most.

1.1.0

  • Update: Using HtmlDomParser fully (which should avoid broken HTML). It is possible to override the plugin hidden options to switch to different mode, but I am trying to find a mode that works for 99% of the users first.

1.0.9

  • Update: Avoid interfering at all with all Ajax/Rest requests.
  • Info: Sorry for the last bunch of updates, some way of modifying HTML works for some, and not for others, and I am still trying to find a solution which works for everyone.

1.0.8

  • Update: Back to OB, maybe there should be an option for that.
  • Update: Get all the images of the page/post content instead of within specific containers previously.

1.0.7

  • Update: Not using OB anymore; going through the content filter (this behavior can be changed internally), better and faster this way.
  • Fix: Avoid issues with static variables which are not registered on older PHP versions.

1.0.6

  • Fix: Now works with the most tenacious lightboxes.
  • Update: The way the HTML was modified to make sure it is compliant.

1.0.5

  • Add: Filter to let the user enables/disables the plugin depending on conditions. Check the official page to know more about this: Gallery Custom Links.

1.0.4

  • Fix: Support images embedded in a few layer of tags before the link tag.
  • Add: Added a class on the a-tag, for the ones who would like to add some styling to linked images. The Meow Lightbox is already handling this, by avoiding showing a zoom cursor when hovering images.
  • Add: Compatibility with extra galleries is made through a filter (which anybody can use) and the file mgcl_extra.php.
  • Info: If you like the plugin, your reviews are welcome here 🙂 Thank you!

1.0.2

  • Fix: Now works with thumbnails in src.
  • Update: Optimization (does not regenerate pages which aren’t impacted by changes).
  • Update: DiDom from 1.13 to 1.14.1.

1.0.0

  • Update: If the ID of the Media is not found in the HTML, it will resolve it through the DB from the filename.

0.0.1

  • First release.

Alternatives to Gallery Custom Links

Other WordPress plugins serving a similar purpose, ranked by relevance and PF Score.

Gold83.7
Custom Block Builder – Lazy Blocks icon

Custom Block Builder – Lazy Blocks

Create custom Gutenberg blocks and meta fields without writing code or hiring developers.

★ 4.9/5·20K+ installs·Updated 11 Jun 2026
Platinum99.2
Starter Templates – AI-Powered Templates for Elementor & Gutenberg icon

Starter Templates

Access a growing library of 300+ pre-built page templates for all major WordPress themes.

★ 4.9/5·1.0M+ installs·Updated 12 Aug 2026
Platinum97.4
Spectra Legacy – Gutenberg Blocks icon

Spectra Legacy – Gutenberg Blocks

Extends Gutenberg with advanced blocks to accelerate WordPress website creation and design workflows.

★ 4.7/5·1.0M+ installs·Updated 31 Jul 2026
Platinum97.4
Smart Slider 3 icon

Smart Slider 3

Create responsive image sliders, video sliders, and carousels using a visual editor.

★ 4.9/5·800K+ installs·Updated 7 Jul 2026
Platinum97.0
Classic Editor icon

Classic Editor

Reverts to the classic WordPress editor with TinyMCE and Meta Box support for all compatible plugins.

★ 4.9/5·9.0M+ installs·Updated 28 May 2026
Platinum96.9
Disable Gutenberg icon

Disable Gutenberg

Switches WordPress back to the classic editor interface, disabling the block editor entirely.

★ 5/5·500K+ installs·Updated 18 Jul 2026
Platinum96.4
Kadence Blocks — Page Builder Toolkit for Gutenberg Editor icon

Kadence Blocks

Gutenberg block collection providing 20+ customizable blocks for dynamic website creation and editing.

★ 4.8/5·600K+ installs·Updated 12 Aug 2026
Platinum93.5
Otter Blocks – Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE icon

Otter Blocks

Page builder offering 20+ blocks and 100+ ready-to-import designs for Gutenberg editor.

★ 4.7/5·300K+ installs·Updated 12 Aug 2026
Platinum93.3
Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks & Patterns icon

Gutenberg Essential Blocks

Extends Gutenberg with 70+ blocks, patterns, WooCommerce components, and AI content generation capabilities.

★ 4.9/5·200K+ installs·Updated 6 Aug 2026
Platinum92.5
Firelight Lightbox icon

Firelight Lightbox

Opens images, videos, PDFs, and popups in responsive lightbox overlays.

★ 4.8/5·200K+ installs·Updated 16 Jul 2026
Platinum92.3
GenerateBlocks icon

GenerateBlocks

Lightweight WordPress blocks for building pages and posts with the block editor.

★ 4.9/5·200K+ installs·Updated 28 Jul 2026