Just a heads up. If you create a group-field and add a repeater inside it and try to follow f.ex. the Advanced example here it’s impossible to get to work. There’s something wrong with how ACF updates or references the data if you try to do it programmatically AND the repeater field is inside a Group field.
Hi, I couldn’t find an answer to this so I’ll post mine here.
My repeater is inside of a group field and I’m working outside the loop.
The post I am saving values to is also one created by wp_insert_post so the custom fields are not actually saved in the database.
You can get field keys from the edit field group page, click on screen options at the top right.
@basthedeveloper Old topic, but thanks for the reply because it might help someone. Since this was first posted I’ve used group fields often and this is the way I would go if I wanted to update a group field with a nested repeater.
Viewing 7 posts - 1 through 7 (of 7 total)
The topic ‘Programmatically updating repeater field values inside a group field’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users