Forum Replies Created

  • I understand it has to be looped through slb_activate() but how? It’s not explained anywhere to dummies like me.

    I have my gallery displaying using the following code, but the lightbox doesn’t do a thing.

    $images = get_sub_field('sc_images');
    if( $images ): ?>
         <?php foreach( $images as $image ): ?>
               <a href="<?php echo $image['url']; ?>">
    	        <img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo $image['alt']; ?>" />
               <p><?php echo $image['caption']; ?></p>
         <?php endforeach; ?>
    <?php endif; ?>
Viewing 1 post (of 1 total)