Oh damn. You are so clever!!! That was it. It was part of my code where I update the post slug based on the post title. I removed that code and tested the post update/publish part only, when acf have already been created. Thank you so much! Saved me a lot of time!
Even if I create new fields now, in a new group, I still get keys like this one. I can verify it by going to Tools and then Export. I read that all keys should be in field_xxxx format, but no idea why it’s happening for me. As I said, I disabled all themes and plugins and was able to reproduce.
Unfortunately, it didn’t work. Unless I need to do something more than installing the plugin. I updated my question in the wordpress forum, with this. Might be helpful?
Trying to debug further. When I click on update on the post, if I inspect the HTTP request to admin-ajax.php, the payload has this:
acf[field_61cf02821292a]: 500
acf[quantity-label]: 1000 items
The first one is saved to the database, while the second doesn’t. Doing more tests, looks like all the acf that have the name field_xxxx in the payload gets the update, while the rest don’t
I am not 100% sure, but I think, the first field on the group I create takes the correct key format and every other custom field in that group takes the name of the field as the key. Which makes it not getting updated.