Support

Account

Home Forums ACF PRO Location –> Attachment, how to display values ? Reply To: Location –> Attachment, how to display values ?

  • If you are returning images from image fields as image opbjects then the basic meta data is included in that object. If you are returning IDs then you can use wp_get_attachment_metadata(). If you are returning the image URL then I don’t think it can be done.

    To get the content added to ACF fields attached to the attachment you would use

    get_field('field_name', $attachment_id)

    I don’t know if the $attachment ID is returned as part of an image object, you may need to return IDs to get them.