Home › Forums › Front-end Issues › Create Front End Form using Shortcode › Reply To: Create Front End Form using Shortcode
To answer the first question, the test for a submission must be done before any HTML output is created, so before the page is rendered, otherwise it will creat a PHP error “cannot modify headers, output already sent by …’
The second question, in order to show a front end form on a different post type than it is attached to you need to specify the field group keys that should be shown.
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.