Skip to content

Instantly share code, notes, and snippets.

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): ?>
<a href="<?php echo $photo['large']; ?>" title="<?php echo $photo['title']; ?>">
<img src="<?php echo $photo['thumb']; ?>" />
<?php endforeach; ?>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment