Title: Code from FAQ #6
Last modified: August 21, 2016

---

# Code from FAQ #6

 *  Resolved [thm_office](https://wordpress.org/support/users/thm_office/)
 * (@thm_office)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/code-from-faq-6/)
 * Hi,
 * The plugin is working but I don’t manage that it uses the links specify under
   the Gallery Link URL. I’m trying to use the code defined in the FAQ #6 but don’t
   really understand where exactly I would to add that piece of code?
 * Thanks
    Thomas
 * [http://wordpress.org/plugins/wp-gallery-custom-links/](http://wordpress.org/plugins/wp-gallery-custom-links/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [fourlightsweb](https://wordpress.org/support/users/fourlightsweb/)
 * (@fourlightsweb)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/code-from-faq-6/#post-4409568)
 * Try taking a look at this discussion from another user and see if that helps (
   code is from his theme’s functions.php file):
 * [http://wordpress.org/support/topic/wont-work-syntax-error?replies=3](http://wordpress.org/support/topic/wont-work-syntax-error?replies=3)
 *  Thread Starter [thm_office](https://wordpress.org/support/users/thm_office/)
 * (@thm_office)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/code-from-faq-6/#post-4409578)
 * That wouldn’t help because in the my shortcodes.php I don’t find anything related
   to “Gallery”.
 * However, I’ve found my mistake… 🙁 I used [http://www.google.com](http://www.google.com)
   instead of [https://www.google.com/](https://www.google.com/). Why does this 
   actually matter?
 *  Thread Starter [thm_office](https://wordpress.org/support/users/thm_office/)
 * (@thm_office)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/code-from-faq-6/#post-4409579)
 * I mean [http://www.google.com](http://www.google.com) without the http://
 *  [fourlightsweb](https://wordpress.org/support/users/fourlightsweb/)
 * (@fourlightsweb)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/code-from-faq-6/#post-4409581)
 * Ah, that would be a html/browser issue – link hrefs should either start with 
   a “/” or “./” or “../” or a folder/filename if it’s an internal link, or “http”
   or “https” or “//” if it’s an external link, otherwise the browser gets confused
   about what to do with it (it’s probably looking for a folder under your page 
   called “www.google.com”). Glad it was a simple fix!
 *  Thread Starter [thm_office](https://wordpress.org/support/users/thm_office/)
 * (@thm_office)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/code-from-faq-6/#post-4409606)
 * Thanks for your fast response!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Code from FAQ #6’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-gallery-custom-links_d3d5d9.svg)
 * [WP Gallery Custom Links](https://wordpress.org/plugins/wp-gallery-custom-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-gallery-custom-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-gallery-custom-links/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-gallery-custom-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-gallery-custom-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-gallery-custom-links/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [thm_office](https://wordpress.org/support/users/thm_office/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/code-from-faq-6/#post-4409606)
 * Status: resolved