Title: Gallery Shortcodes
Last modified: August 30, 2016

---

# Gallery Shortcodes

 *  [tgelles](https://wordpress.org/support/users/tgelles/)
 * (@tgelles)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/gallery-shortcodes/)
 * The stock Gallery Shortcode does not seem to work on mapped domains.
 * When a user clicks on the thumbnail, it opens the image and not the lightbox,
   as according to the inspector, the images are being served via the host url.
 * Thoughts?
 * Thanks!
 * [https://wordpress.org/plugins/wordpress-mu-domain-mapping/](https://wordpress.org/plugins/wordpress-mu-domain-mapping/)

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

 *  [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * (@madtownlems)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/gallery-shortcodes/#post-6621068)
 * Stock gallery shortcode works on mapped domains for us. Have you confirmed it’s
   not an issue with any other plugins or your theme?
 * > When a user clicks on the thumbnail, it opens the image and not the lightbox,
 * Note that this IS the expected behavior for the stock gallery shortcode. There
   is no stock lightbox that comes from [gallery]
 *  Thread Starter [tgelles](https://wordpress.org/support/users/tgelles/)
 * (@tgelles)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/gallery-shortcodes/#post-6621242)
 * My apologies, we’re evidently using a custom plugin that replaces default [gallery]
   shortcode to use Foundation’s clearing javascript.
 * What’s happening is this line of code in said plugin: `wp_get_attachment_image_src(
   $id, 'full', false, false);` . The `wp_get_attachment_image_src` function is 
   serving the image from the host.
 * I realize this is outside the scope of the plugin’s support, but think it’s worth
   sharing in case anyone else encounters this problem.

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

The topic ‘Gallery Shortcodes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-mu-domain-mapping.svg)
 * [WordPress MU Domain Mapping](https://wordpress.org/plugins/wordpress-mu-domain-mapping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-mu-domain-mapping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/reviews/)

## Tags

 * [domain](https://wordpress.org/support/topic-tag/domain/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [host](https://wordpress.org/support/topic-tag/host/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [tgelles](https://wordpress.org/support/users/tgelles/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/gallery-shortcodes/#post-6621242)
 * Status: not resolved