Home › Forums › General Issues › update_field not updating fiel › Reply To: update_field not updating fiel
Per far above, I have actually tried:
update_sub_field(field_64c782fc4c55d, 84, 1074);
And it does not update even if the value is different from the current value.
According to the man page, $selector can be a string, too,
$selector (string|array) (Required) The sub field name or key, or an array of ancestors and row numbers.
$value (mixed) (Required) The new value.
$post_id (mixed) (Optional) The post ID where the value is saved. Defaults to the current post.
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.