Title: Dynamically populated gallery problem
Last modified: August 21, 2016

---

# Dynamically populated gallery problem

 *  [fallenartist](https://wordpress.org/support/users/fallenartist/)
 * (@fallenartist)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/dynamically-populated-gallery-problem/)
 * Hi,
 * I’m working on a Flickr gallery shortcode that dynamically injects some images
   into the page: [http://www.printhouse.co.uk/products/folders/](http://www.printhouse.co.uk/products/folders/)(
   under “Folders Gallery”).
 * However, I’m unable to use Shadowbox on these images. All the other links work
   as they should (see [here](http://www.printhouse.co.uk/products/calendars/)),
   only the images added with a short code don’t work.
 * I’ve found a [topic](http://stackoverflow.com/questions/9144577/shadowbox-stops-working-after-jquery-function-call)
   that suggests adding `Shadowbox.clearCache();` and `Shadowbox.setup();` to reinitialise
   Shadowbox but it still doesn’t work.
 * Any ideas how to force Shadowbox plugin to recognise dynamically generated image
   links in my case? Thanks.
 * [http://wordpress.org/plugins/shadowbox-js/](http://wordpress.org/plugins/shadowbox-js/)

The topic ‘Dynamically populated gallery problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shadowbox-js.svg)
 * [Shadowbox JS](https://wordpress.org/plugins/shadowbox-js/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shadowbox-js/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shadowbox-js/)
 * [Active Topics](https://wordpress.org/support/plugin/shadowbox-js/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shadowbox-js/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shadowbox-js/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [fallenartist](https://wordpress.org/support/users/fallenartist/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/dynamically-populated-gallery-problem/)
 * Status: not resolved