Support

Account

Home Forums General Issues Accessing Image Caption and Description Reply To: Accessing Image Caption and Description

  • Hi @jmtaha,

    Set the ‘return value’ option for your image field to ‘Image Array’. Then access the caption and description for the selected image in your image field as shown below:

    $image = get_field('image_field_name);
    
    echo $image['caption']; // image caption
    echo $image['description']; // image description

    Have a look at the docs >> Image field for more info.