It should be working and I don’t see anything in what you’ve posted that should stop it from working. There must be something on your site that is altering the post ID before it’s getting saved. There are too many possibilities to list, you need to somehow narrow down them down. Could be in the theme or in another plugin.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Clients need flexibility. Developers need a repeatable workflow that doesn’t have a steep learning curve. See how digital marketing agency Noiza found both with Advanced Custom Fields in our latest case study.https://t.co/BxQAy6COJt