Home › Forums › General Issues › update_field not updating fiel › Reply To: update_field not updating fiel
I got it workin outside of a loop, finally, with this;
update_field('field_64b38c4e3ec56', array(field_64c782fc4c55d=>7), 1123);
so it is:
update_field($group_field_name, array($sub_field_name=>$new_value), $post_id)
I found it from this thread. Search for this sentence, “The true way for update / create a sub field of a group is with this ” by Sebastien Patelski dated October 28, 2021.
I think this deserves some highlighting in the man pages.
Again, that you for all your help John Hueber.
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.