Home › Forums › Add-ons › Repeater Field › How to add new row in repeater under some group programatically › Reply To: How to add new row in repeater under some group programatically
I have the same problem. I have a repeater inside a group. I can’t add new rows to the repeater, programatically. I have tried using add_row with field names or keys. add_row returns integers but in the backend I can’t see any values.
I have tested also with a repeater outside the group. On that it works using add_row.
Thanks for any help!
add_row(
"field_5b606d31f4bb9",
array(
"field_5b607763dc795" => 100,
"field_5b606d3bf4bba" => "10.10.2018"
),
$post->ID
);
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.