use this function to access any part of the $wp_query array which holds all post information, OUTSIDE the loop. so you may get the content of a page and display it in the header.php.