I’m trying to retrieve the “medium” size image from a Group that’s inside a repeater.
The field is an Image Object/Array.
I can get the full size image with:
$ta_col_left = get_sub_field(‘ta_col_left’);
$image_left = $ta_col_left[‘course_image’][‘url’];
<?php echo $image_left; ?>
But I want to get the WordPress image size “medium”.
I checked and the image does exist.
I just don’t know how to append the image size parameter.
$ta_col_left['course_image']['sizes']['medium']
Yes that worked, seems obvious now. Thank you.
The documentation on the image field is a little lacking. It is only referenced in some of the code in one example https://www.advancedcustomfields.com/resources/image/