Created
April 8, 2014 17:03
-
-
Save aaronranard/10156591 to your computer and use it in GitHub Desktop.
WordPress: ACF - Lightbox Gallery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$images = get_field('floorplans'); | |
if( $images ): ?> | |
<div id="slider" class="flexslider"> | |
<div class="col-md-3"> | |
<?php foreach( $images as $image ): ?> | |
<a href="<?php echo $image['url']; ?>" data-lightbox="floorplans"><img src="<?php echo $image['sizes']['medium']; ?>" alt="<?php echo $image['alt']; ?>" /></a> | |
<?php endforeach; ?> | |
</div> | |
</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment