Support

Account

Home Forums Front-end Issues ACF plugin is causing "headers already send by…" error Reply To: ACF plugin is causing "headers already send by…" error

  • The problem is here

    
    /**
    * Redirect
    */
    if (get_field(‘general_redirect’, $bifrost_queried_object) && get_field(‘general_redirect_url’, $bifrost_queried_object)) {
    wp_redirect(get_field(‘general_redirect_url’, $bifrost_queried_object));
    exit;
    }
    

    You are attempting to redirect after HTML output has been started. This code needs to happen before

    
    <!DOCTYPE html>