Home › Forums › Backend Issues (wp-admin) › Edit fields from attachment on page edit screen? › Reply To: Edit fields from attachment on page edit screen?
I found this, looks like what you’re looking for, https://generatewp.com/add-custom-fields-to-featured-image-meta-box/. You’ll need to use the ACF field names where field names are used in the example. Also, you will need to update the field keys. Or, alternately, you might be able to use update_field() instead of update_post_meta(), just make sure you use the field keys when updating ACF field values https://www.advancedcustomfields.com/resources/update_field/
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.