Home › Forums › Front-end Issues › Custom Genesis user profile page doesn't load after submit › Reply To: Custom Genesis user profile page doesn't load after submit
Adding acf_form_head()
on the wp_head
action is far too late. This action is not called until the last thing before the </head>'
tag. The ACF function must be called before any HTML is output.
This can be done on the init
hook for example, or any hook that runs before any content is output.
For example, you could also use get_header
hook https://developer.wordpress.org/reference/functions/get_header/ … https://genesistutorials.com/visual-hook-guide/
It is usually most efficient to add the acf_form_head()
call before the get_header()
call in your template because that way you’re only including the ACF scripts on the pages where they are needed.
More than likely you’re getting a blank page because there is a php error, probably cannot modify headers, out started at ....
error. You might want to turn on error reporting https://codex.wordpress.org/WP_DEBUG
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.