Home Forums Front-end Issues acf_form() always creates two posts Reply To: acf_form() always creates two posts

  • Thanks for helping pinpoint this, we were facing this exact issue but are developing within a plugin rather than a template which prevents us from putting the function at the top of the template file we wanted.

    What we found, rather than adding to init is to inject into wp_head with a priority of 1 to force it to appear first. Figured I’d add here as well just to give some alternative options.

    add_action( 'wp_head', 'inject_acf_form_head', 1 );
    function inject_acf_form_head( ) {