Support

Account

Home Forums General Issues Adding an image size choice Reply To: Adding an image size choice

  • If the image size value that can be selected matches images sizes on the site and returned in the image array then it would be something like this

    
    <img src="<?php 
        echo $image_choice['sizes'][get_sub_field('image_size')]; ?>" alt="<?php 
        echo $image_choice['alt']; ?>" />