Support

Account

Home Forums Front-end Issues acf_form without loggin in Reply To: acf_form without loggin in

  • Hello,

    I am completely stupid :). The issue has been solved.
    I overlooked a function which had a return when a user is not logged in..

    add_action( 'get_header', 'tsm_do_acf_form_head', 1 );
    function tsm_do_acf_form_head() {
     // Bail if not logged in or not able to post
     if ( ! ( is_user_logged_in() || current_user_can('publish_posts') ) ) {
     return;
     }
     acf_form_head();
    }

    Thank you very much for your help, above code was the issue and I removed it.