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
Hi @studiowizjo
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!
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.