The only problem I can see with what you’re trying to do is that acf_form_head() must be called before any output is generated for the site. This function must be called before get_header() is called. When you call this function from a shortcode then this function is being called too late. Other than that, I don’t see anything in the code that you provided that might cause a problem.
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