Home › Forums › General Issues › Using update_field to update repeter field nested in repeater field › Reply To: Using update_field to update repeter field nested in repeater field
The update_field function does not append any data, so you will have to run update_field on the entire repeater and override all the data. This is not efficient but currently, this function is very simple.
The data must be in the same format as to which it is given to you. The easiest way is to look at the docs and see how the get_field function is used to load the entire repeater field value, then append a row to it, and then save it again.
You can see that each row is an array where the keys are each sub_field name
Does that help?
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!