Hi! Thanks for a great plugin. Could’t manage without it!
Never written in the forum before, just found myself with a problem I can’t easily solve. I want to use the gallery field with three different thumbnail settings and randomise those settings for the gallery images.
How do I do that in a lean and clever fashion?
Using the following basic code so far:
<?php $images = get_field('front_gallery'); if( $images ): ?>
<?php foreach( $images as $image ): ?>
<a href="<?php echo $image['url' ]; ?>" title="<?php echo $image['caption']; ?>" rel="gallery"><img class="" src="<?php echo $image['sizes' ]['thumbnail' ]; ?>"/></a>
<?php endforeach; ?>
<?php endif; ?>