Last active
August 29, 2015 14:20
-
-
Save paulhuisman/96f8ba468ff1a1833811 to your computer and use it in GitHub Desktop.
Flickr field code example
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 $flickr_photostream = get_field('flickr_photoset'); ?> | |
<?php if (isset($flickr_photostream['items'])): ?> | |
<ul class="flickr-items"> | |
<?php foreach ($flickr_photostream['items'] as $id => $photo): ?> | |
<li> | |
<a href="<?php echo $photo['large']; ?>" title="<?php echo $photo['title']; ?>"> | |
<img src="<?php echo $photo['thumb']; ?>" /> | |
</a> | |
</li> | |
<?php endforeach; ?> | |
</ul> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment