Support

Account

Home Forums Front-end Issues Image wont display in header.php template file Reply To: Image wont display in header.php template file

  • Since you are in header.php you are outside of “The Loop”, you will need to supply the get_field() function with the post ID;

    
    $queried_object = get_queried_object();
    $image = get_field('background_image', $queried_object->ID);