I can’t say, but maybe using update_sub_row is the problem, since the row you’re trying to update does not exist, to be honest I’m not sure how it works. Maybe try using add_sub_row() https://www.advancedcustomfields.com/resources/add_sub_row/
Welcome
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
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.