Home › Forums › Backend Issues (wp-admin) › Adding custom meta fields to an image field › Reply To: Adding custom meta fields to an image field
Is the field group location rules set to show on attachments or somewhere else?
Before you can update fields on attachment you need to create a field group that adds them there.
Then, where is the update happening? When you edit the image or when you edit some other post? I’m assuming that it’s when editing another post. In this case you would use an acf/save_post action and in this action you would update the fields attached to the image after getting the attachment ID you want to update.
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.