Created
April 8, 2015 18:26
-
-
Save mantismamita/ae5bf2d03d5cdf3863eb to your computer and use it in GitHub Desktop.
flexslider markup in WordPress (uses ACF)
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
$images = get_field('slides'); | |
if( $images ) { ?> | |
<div id="slider" class="flexslider"> | |
<ul class="slides"> | |
<?php foreach( $images as $image ): ?> | |
<li> | |
<img src="<?php echo $image['sizes']['large']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
</li> | |
<?php endforeach; ?> | |
</ul> | |
</div> | |
<?php } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment