Home › Forums › Backend Issues (wp-admin) › Shortcode attributes to set options › Reply To: Shortcode attributes to set options
Thanks for the help. I was able to get around having to hardcode acf_form_head()
into my theme by doing this (more or less) in the plugin.
function output_acf_form($args) {
global $post;
if (has_shortcode($post->post_content, 'my_shortcode')) {
acf_form_head();
}
// everything else...
}
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.