Home › Forums › ACF PRO › How to assign value for a specific repeater sub field of sub field › Reply To: How to assign value for a specific repeater sub field of sub field
Look at the last code example on this page
However, I would use field keys and not field names, especially if you are inserting a new value and not updating and existing value. In your case it might look something like this
update_sub_field( array( 'field_0123456789', 1, // field key for "co-author_information" repeater row 1 'field_1234567890', 1, // field key for "contact_information" row 1 'field_2345678901', 1, // field key for "alternate_contacts" row 1 'field_3456789012' // field key for "facebook" ), 'This value is for repeater row 1, and sub_repeater row 1, sub_sub_repeater row 1!' );
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!
© 2023 Advanced Custom Fields.