Home › Forums › Add-ons › Repeater Field › Programmatic create repeater field › Reply To: Programmatic create repeater field
Hi @hannit
Thanks for the follow up.
ACF contains a simple function called update_field
. You can read about it here:
http://www.advancedcustomfields.com/resources/functions/update_field/
To save the repeater field, you will need to save the $value as a multidimensional array.
The $value will be an array where each piece is another array. This represents each row.
In each row array, you will need to define the sub field values. This can easily be done using the sub_field name as the key, and the sub_field value as the value.
Thanks
E
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.