Title: Multiple slideshows with ACF and Simple Lightbox?
Last modified: November 8, 2016

---

# Multiple slideshows with ACF and Simple Lightbox?

 *  Resolved [itstoolong](https://wordpress.org/support/users/itstoolong/)
 * (@itstoolong)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/multiple-2/)
 * I am working with ACF Pro Gallery and this is how I display my pictures (slideshow)
   in a template file:
 *     ```
       <?php $images = get_field('gallery');
       if( $images ): ?>
       <div class="gallery">
           <ul class="bilder" style="list-style: none; margin: 0!important;">
               <?php foreach( $images as $image ): 
                   $content = '<li class="large-4 columns nopadding">';
                       $content .= '<a class="gallery_image" href="'. $image['url'] .'">';
                            $content .= '<img src="'. $image['sizes']['large'] .'" alt="'. $image['alt'] .'" />';
                       $content .= '</a>';
                   $content .= '</li>';
                   if ( function_exists('slb_activate') ){
           $content = slb_activate($content);
           }
   
       echo $content;?>
               <?php endforeach; ?>
           </ul>
       </div>
       <?php endif; ?>
       ```
   
 * What I want to do is to have 2 or more separate galleries (as slideshows) on 
   one page. Each slideshow _only_ contains the pictures of gallery01 but not of
   gallery02 and so on…
 * Is that possible?
    -  This topic was modified 9 years, 5 months ago by [itstoolong](https://wordpress.org/support/users/itstoolong/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/multiple-2/#post-8417405)
 * Hi, you can group links activated by `slb_activate()` using its `$group` parameter.
   For example:
 *     ```
       $content = slb_activate($content, 'gallery-1');
       ```
   
 * [See SLB’s documentation for more details on using `slb_activate()`.](https://github.com/archetyped/simple-lightbox/wiki/Activation)
    -  This reply was modified 9 years, 4 months ago by [Archetyped](https://wordpress.org/support/users/archetyped/).

Viewing 1 replies (of 1 total)

The topic ‘Multiple slideshows with ACF and Simple Lightbox?’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Archetyped](https://wordpress.org/support/users/archetyped/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/multiple-2/#post-8417405)
 * Status: resolved