Home › Forums › Front-end Issues › Error when creating new post › Reply To: Error when creating new post
check if you have ANY blank spaces before your code in template_form.php and remove them. Also worth checking all your other files index.php, header.php for blank spaces before (and after) code. It’s a common cause for this error.
If it doesn’t, try putting <?php acf_form_head(); ?> in your header.php instead (before any code and without any spaces before as I mentioned above)
Hope this helps.
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.