Home › Forums › Bug Reports › update_field() inconsistency › Reply To: update_field() inconsistency
Okay, that seems to work with a very simply repeater field.
Try this. Create a Group. Within that group, create a repeater with 3 fields.
Create a post in the admin area as normal.
Use the FIELD_ID and the POST_ID in get_field() to get the data for that group. You should get a nested array.
Modify that array and use update_field() to put the data back. It should work just fine.
Now, wp_insert_post() to create a post. Use get_field() to get the data from the first post with valid data. Use update_field() to copy that data into the new post. If fails.
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.