Friday, March 25th, 2016
You can use thumbnail, medium, large or full as the sizes variable to serve the size image you require.
<?php $image = get_field('the_image'); ?>
<img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo $image['caption']; ?>" />
Tags: ACF, Advanced custom fields, Array, Full, Image, Image sizes, Medium, Thumbnail
Posted in PHP, WordPress | No Comments »