title: How do I add a page featured image to nivo slider in wordpress?
body: <p>I've followed the guide below in trying to manually install nivo slider into Wordpress: <a href="http://www.aoclarkejr.com/author/aj/" rel="nofollow">http://www.aoclarkejr.com/author/aj/</a></p>
  
  <p>I'm trying to get the slider to pick up and display the featured image. I think perhaps there is a problem with the code in step 6, and not just the missing ' (see below). As the slider appears to be loading i.e I get the next/prev tabs and can see the code when viewing the page source, but it's not picking up and displaying the featured image. </p>
  
  <pre><code> &lt;div id="slider-wrap"&gt;
      &lt;div id="slider"&gt;
      &lt;?php query_posts(array(
      'post_type'=&gt;'slides
      ));
      ?&gt;
  &lt;?php if ( have_posts() ) while ( have_posts() ) : the_post();
  $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
  ?&gt;
  &lt;img src="&lt;?php echo $thumbnail[0]; ?&gt;" width="" height="" /&gt;
  &lt;?php endwhile; ?&gt;
  &lt;/div&gt;&lt;!--/slider nivoSlider--&gt;
  &lt;/div&gt;&lt;!--/slider-wrap --&gt;
  </code></pre>
  
  <p>I should add that I'm trying to get this to work on a page, not custom post.
  My ultimate goal is the get the same implementation as this: <a href="http://pexetothemes.com/demos/story_wp/home-default/" rel="nofollow">http://pexetothemes.com/demos/story_wp/home-default/</a></p>
  
  <p>Here is my code now:</p>
  
  <pre><code>&lt;?php get_header(); ?&gt;
  
  &lt;div class="header-wrapper"&gt;
  &lt;div id="slider-wrap"&gt;
  &lt;div id="slider"&gt;
  &lt;?php query_posts(array(
  'post_type'=&gt;'page'
  ));
  ?&gt;
  &lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post();
  $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
  ?&gt; &lt;img src="&lt;?php echo $thumbnail[0]; ?&gt;" width="" height="" /&gt; 
  &lt;?php // endwhile; ?&gt;
  &lt;/div&gt;&lt;!--/slider nivoSlider--&gt;
  &lt;/div&gt;&lt;!--/slider-wrap --&gt;
  
  
  &lt;/div&gt;  
          &lt;div class="clear"&gt;&lt;/div&gt;
  
          &lt;div id="content-container" class="content-boxed layout-full"&gt;
              &lt;div id="full-width" class="content"&gt;
                  &lt;div class="content-box"&gt;
                      &lt;?php the_content(); ?&gt; 
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;      
  
          &lt;?php endwhile; else : ?&gt;
      &lt;p&gt;&lt;?php _e( 'Sorry, no posts matched your criteria.' ); ?&gt;&lt;/p&gt;
  &lt;?php endif; ?&gt;
  
          &lt;/div&gt;&lt;!-- page wrapper --&gt; 
  
  &lt;?php get_footer(); ?&gt;
  </code></pre>
  
  <p>For some reason part of the page is repeating itself.</p>
  
  <pre><code>       &lt;div class="header-wrapper"&gt;&lt;/div&gt;
          &lt;div id="slider-wrap"&gt;
              &lt;div id="slider"&gt;
                  &lt;img width="" height="" src="http://localhost:8888/defylife/assets/images/posts/ccm_adventure_450gp_left.jpg"&gt;&lt;/img&gt;
              &lt;/div&gt;
              &lt;!--
  
              /slider nivoSlider
  
              --&gt;
          &lt;/div&gt;
          &lt;!--
  
          /slider-wrap 
  
          --&gt;
          &lt;div class="clear"&gt;&lt;/div&gt;
          &lt;div id="content-container" class="content-boxed layout-full"&gt;
              &lt;div id="full-width" class="content"&gt;
                  &lt;div class="content-box"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;img width="" height="" src=""&gt;&lt;/img&gt;
      &lt;/div&gt;
      &lt;!--
  
      /slider nivoSlider
  
      --&gt;
  
  &lt;/div&gt;
  &lt;!--
  
  /slider-wrap 
  
  --&gt; 
  </code></pre>