Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Flickr field code example
<?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