Created
October 13, 2016 01:33
-
-
Save ciaranha/69f758780fb9a610e39b20aedc7fa42a to your computer and use it in GitHub Desktop.
ACF Image 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 elseif( get_row_layout() == 'slider' ): ?> | |
<?php $images = get_sub_field('slider_shortcode'); | |
if( $images ): ?> | |
<div id="general-slider"> | |
<?php foreach( $images as $image ): ?> | |
<div class="item"> | |
<img class="slide" src="<?php echo $image['sizes']['slidersize']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
<div class="slide-content"> | |
<?php echo $image['title'];?> | |
</div> | |
</div> | |
<?php endforeach; ?> | |
</div> | |
<?php endif; ?> | |
<?php endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment