Home › Forums › Add-ons › Repeater Field › Add Row only works on published cpt's › Reply To: Add Row only works on published cpt's
Hi @snixx
It’s because ACF will show the repeater field based on your field group setting, but it still has no initial value in the database. It will prevent the add_row() function to add the row because it can’t find it.
Have you tried the update_field() function instead?
Thanks!
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.