Home › Forums › Bug Reports › acf_form failing after update › Reply To: acf_form failing after update
I had the same issue… Took me hours to figure it out. I can’t believe there’s no one else that has this problem…
I had put acf_register_form
right before the acf_form
call just like you based on a previous example that I had found. But after I updated ACF, this no longer worked.
I finally re-checked ACF’s documentation about how you’re supposed to set it up here: https://www.advancedcustomfields.com/resources/acf_register_form/#examples
Apparently you can no longer call acf_register_form
right before acf_form
. You need to call it via the acf/init
action and put that in your functions.php file. Do that and presto, it works again!
My guess is that it happened at version 5.8.5 back in October 2019 with this:
New – Optimized acf_form() logic when used in combination with acf_register_form().
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.