Multiple slideshows with ACF and Simple Lightbox?
-
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?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Multiple slideshows with ACF and Simple Lightbox?’ is closed to new replies.