Home › Forums › Backend Issues (wp-admin) › Shortcode attributes to set options › Reply To: Shortcode attributes to set options
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
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.