Home › Forums › Add-ons › Repeater Field › Adding repeater field with update_post_meta › Reply To: Adding repeater field with update_post_meta
Hi @karbanovich
All you need to do is ditch the current code which uses the native post meta functions, and use the ACF update_field function.
This function will expect a multi-dimentional array as the value (an array of rows each containing the cell)
Don’t save each sub field separately, but only save the repeater field once with all the data!
Let me know if you run into any issues.
http://www.advancedcustomfields.com/resources/functions/update_field/
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.