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
https://www.advancedcustomfields.com/resources/update_sub_field/
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!
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.