Home › Forums › ACF PRO › Displaying custom field on all attached media items › Reply To: Displaying custom field on all attached media items
Hi @aswhipple
It depends on how you add the image. If you use WordPress content editor, then you need to check the content for any attachment link because WordPress attach the attachment just like a normal link. After that, you need to get the ID of the attachment from the link. Then you can show the custom field value by following this guide: https://www.advancedcustomfields.com/resources/how-to-get-values-from-a-media-attachment/.
The important thing is to get the attachment ID so you can get the custom field value by using that ID.
I hope this makes sense 🙂
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.