Home Forums Bug Reports hidden fields on frontend header


hidden fields on frontend header

  • ACF is adding some hidden fields on frontend, e.g.
    <script type=”text/javascript”>
    jQuery(‘form.acf-form’).append(‘<input type=”hidden” name=”acf[post_ID]” value=”1689″/>’);
    jQuery(‘form.acf-form’).append(‘<input type=”hidden” name=”acf[frontend]” value=”true”/>’);
    As there is no form.acf-form on fronteand, i guess that may be wp_head hook is used instead of admin_head by mistake somewhere

  • If you include the acf_form_head() then the script will be included. This function should only be included in the template before theget_header() call.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.