Last active
January 18, 2017 11:44
-
-
Save veirus/518754f73c728cba6c3129144fc68287 to your computer and use it in GitHub Desktop.
for plugin advanced fields
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('images', 'options'); | |
if( $images ): ?> | |
<?php foreach( $images as $image ): ?> | |
<a href="<?php echo $image['url']; ?>" class="fancyBox" rel="about"> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
</a> | |
<?php endforeach; ?> | |
<?php endif; ?> | |
<?php unset($image); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment