Home › Forums › Bug Reports › update_field() inconsistency › Reply To: update_field() inconsistency
So that’s part of the problem. You can’t update a field that is a sub field or a nested nested field with just the field key for that field. To use just the single field key it must be a top level field. To update a sub field you need to use update_sub_field()
https://www.advancedcustomfields.com/resources/update_sub_field/ and supply a selector that is an array that provides a path to the sub field, And I’m going to be honest, I don’t completely understand how this works.
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.