Title: [Plugin: NextGEN Gallery] Dynamically loading images
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] Dynamically loading images

 *  [misterpatrick67](https://wordpress.org/support/users/misterpatrick67/)
 * (@misterpatrick67)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-dynamically-loading-images/)
 * Hello all,
 * I am trying to integrate a gallery with with a jcarousel. I am not a great coder
   so can’t figure out how to do a foreach and load the images in a gallery and 
   then load that array into the item list for a infinity scroll in jcarousel. I
   know what needs to happen, I just don’t know how to do it. So…
 * Let’s say I have a gallery called ‘gallery_1’. How do I loop through the contents
   of that gallery, load it into an array and then load those results into the following
   code. I’ve left an example of how it works with me manually entering the path
   and image name. Thanks for any help!
 *     ```
       var mycarousel_itemList = [
       	{url: '<?php bloginfo('stylesheet_directory'); ?>wp-content/gallery/gallery_1/1.jpg'}
       ];
       ```
   

The topic ‘[Plugin: NextGEN Gallery] Dynamically loading images’ is closed to new
replies.

 * 0 replies
 * 1 participant
 * Last reply from: [misterpatrick67](https://wordpress.org/support/users/misterpatrick67/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-dynamically-loading-images/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
