Home › Forums › Add-ons › Repeater Field › Adding repeater field with update_post_meta › Reply To: Adding repeater field with update_post_meta
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.
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.