Home › Forums › General Issues › update_field doesn't update until I resave post › Reply To: update_field doesn't update until I resave post
I’ve realized I need to use the field_key
to update the fields since the post is being created.
Is there a function which would allow me to get the field objects by name, so I can loop over fields by name and get the keys to update each field which contains a value from the form, rather than many update_field functions?
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.