WP Gallery Custom Links


screenshot-1 If you’ve ever had a WordPress gallery of staff, product, or other images and needed to link them to other pages but couldn’t, this plugin is for you!
This plugin adds a “Gallery Link URL” field when editing post images. If the image is included in a gallery, the “Gallery Link URL” value will be used as the link on the image instead of the raw file or the attachment post. There are also several additional options (see “Usage” below).
It’s designed to work even if customizations have been made via the post_gallery filter; instead of replacing the entire post_gallery function, it calls the normal function and simply replaces the link hrefs in the generated output. By default, any Lightbox or other onClick events on custom links will be removed to allow them to function as regular links.


  • See the custom fields added in the screenshots section at http://wordpress.org/extend/plugins/wp-gallery-custom-links/screenshots/.
  • For each gallery image, you can specify a custom Gallery Link URL.
  • Use [none] as the Gallery Link URL to remove the link for that gallery image.
  • For each gallery image, you can select a Gallery Link Target (“Same Window” or “New Window”).
  • For each gallery image, you can select how to handle Lightbox and other onClick events (“Remove” or “Keep”).
  • Use [gallery ignore_gallery_link_urls=”true”] to ignore the custom links on an entire gallery.
  • Use [gallery open_all_in_new_window=”true”] and [gallery open_all_in_same_window=”true”] to open all images in an entire gallery in a new window/the same window, respectively.
  • Use [gallery preserve_click_events=”true”] to keep Lightbox or other onClick events on all custom-linked images in an entire gallery.
  • Use [gallery remove_links=”true”] to remove links on all images in an entire gallery.
Download Plugin



If you find this plugin useful and would like to thank me monetarily for the time, energy and ice cream put into it, I would not object. :)

5 Responses to WP Gallery Custom Links

  1. Jason says:

    I’ve started using this plugin, but it is still launching the Lightbox whether I have it “removed” or not. Any thoughts?

  2. amit says:

    Hi there. i am using this plugin for my website. i want to know that i want to change my images size means i want to increase my images size. it is too small. can you please help me out in this.

  3. Craig says:

    I am not able to edit a gallery in ie 11 but I can work around this by using Chrome.
    Has anyone run into this issue?

  4. Tom Fraser says:

    I have been using Gallery links successfully (thank you very much) to link thumbnails to product pages but, all of a sudden it ceased working. I am using on a Woo Theme called Canvas with the latest version of WP.


Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *


Please enter the CAPTCHA text

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>