Home › Forums › Backend Issues (wp-admin) › update_sub_field doing nothing, with or without keys. › Reply To: update_sub_field doing nothing, with or without keys.
Thanks again, Using this I can verify, by adding in an echo, that it gets through to the label group, using keys I’ve snagged from another array, but when it comes to
update_sub_field, whether using the name or field key, it doesn’t work. I’m going to continue checking logs, but nothing is popping up…
I tried echoing the result of
update_sub_field, and it seems only the first one (for ‘label’) does anything – it returns
true, though it doesn’t actually update anything! A bit odd that it both does nothing, and doesn’t continue to the next
update_sub_field, is it not?
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!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.