Home › Forums › Front-end Issues › Update parent and child repeater programmatically › Reply To: Update parent and child repeater programmatically
I’ve moved
update_field( $field_key, $data, $post_id );
update_sub_field( array($field_key, 1, $sub_field_key), $subdata, $post_id );
Underneath:
update_field
I just set the count to 1 so it’s added ALL cell data except from the first row to the child repeater field of the first parent repeater row. Slight progress!!
I now need to add the correct data to the $subdata
variable.
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.