Home › Forums › General Issues › update_field not updating fiel › Reply To: update_field not updating fiel
I have traced it down to function acf_maybe_get_sub_field()
. This is part of the function:
if ( ! is_array( $selectors ) || count( $selectors ) < 3 ) {
return false;
}
The number of $selectors is 2 so it fails. Should there be a three?
If I print_r($selectors)
I get:
Array ( [0] => field_64b38c4e3ec56 [1] => field_64c782fc4c55d )
…meaning there are only 2 selectors and I guess it is expecting a min of 3, right?
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.