Home › Forums › General Issues › update_field not updating fiel › Reply To: update_field not updating fiel
You can set the reply as private, only you and site users that can view private replies (like me) will see it.
If it is a sub field then you cannot use update_field() to update it. This function is only for top level fields. To update sub field you must use update_sub_field() or use some other way to update the entire field and all sub fields at the same time, as I outlined it a this solutions that I referred you to in a previous reply https://support.advancedcustomfields.com/forums/topic/field-value-update-using-update_field-doesnt-show-on-backend/#post-162342
It is not that confusing, if it is a sub field then you are using the wrong function/method to update the value.
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.