title: wordpress featured image (thumbnail) on header
body: <p>I'm working on making fixes to someones wordpress site, and i encountered this strange code in the loop.php and in a template file for a specific page. My goal is to change this to display the featured image in the header.I did some research into how to output the featured image using the get_thumbnail syntax, I don't normally do much in the back end / FTP of wordpress so thank you for your help and patience. </p>
  
  <pre><code>&lt;?php 
  /**
  * @package WordPress
  * @subpackage WP-Skeleton
  */
  ?&gt;
  &lt;/div&gt;
  &lt;div id="primary"&gt;
  &lt;div id="content"&gt;
      **&lt;?php the_post(); ?&gt;
          &lt;?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(           get_the_ID('full') ), 'page-header' );
          $url = $thumb['0'];?&gt;
          &lt;div id="page-header" style="background-image:url('&lt;?php echo $url; ?&gt;');"&gt;**
          &lt;/div&gt;
      &lt;div style="clear"&gt;&lt;/div&gt;
      &lt;div class="container"&gt;
          &lt;section class="sixteen columns alpha"&gt;
              &lt;header class="entry-header"&gt;
                  &lt;h2 class="entry-title"&gt;Events&lt;/h2&gt;
              &lt;/header&gt;
              &lt;div class="entry-content "&gt;
                  &lt;?php while ( have_posts() ) : the_post(); ?&gt; &lt;!--  the Loop --&gt;
                  &lt;article id="post-&lt;?php the_ID(); ?&gt;" class="event"&gt;
                    &lt;div class="title"&gt;            
                       &lt;a href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title('&lt;h3&gt;', '&lt;/h3&gt;'); ?&gt;&lt;/a&gt;  &lt;!--Post titles--&gt;
                    &lt;/div&gt;
                      &lt;div class="event-img"&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_post_thumbnail('event-img'); ?&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;?php the_content("Continue reading " . the_title('', '', false)); ?&gt; &lt;!--The Content--&gt;
                  &lt;/article&gt;
                  &lt;?php endwhile; ?&gt;&lt;!--  End the Loop --&gt;
              &lt;/div&gt;
          &lt;/section&gt;
      &lt;div&gt;
  &lt;/div&gt;  &lt;!-- End two-thirds column --&gt;
  &lt;/div&gt;&lt;!-- End Content --&gt;
  
  &lt;/diV&gt;
  </code></pre>