Created
May 7, 2018 15:58
-
-
Save pavlo-bondarchuk/58ef8bd4c6f65596665454c2492b052a to your computer and use it in GitHub Desktop.
acf gallery with slick slider
This file contains hidden or 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
<div class="slider-main-gallery col"> | |
<?php | |
$images = get_field('slider'); | |
if( $images ): ?> | |
<?php foreach( $images as $image ): ?> | |
<div class="slide"> | |
<span> | |
<img class="img-responsive" src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt'];?>" /> | |
</span> | |
</div> | |
<?php endforeach; ?> | |
<?php endif; ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment