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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.