title: wordpress display featured image
body: <p>I am currently trying to display my post's featured image in a horizontal slider that shows three images at the time, and then the next three once clicked (right / left), however I can not get the featured images to show up.</p>
  
  <p>My code:</p>
  
  <pre><code>    &lt;div id="primary"&gt;
          &lt;div id="content" role="main"&gt;
          &lt;?php while ( have_posts() ) : the_post(); ?&gt;
              &lt;article id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class('collections'); ?&gt;&gt;
                  &lt;header class="entry-header"&gt;
                      &lt;h1 class="entry-title"&gt;Collections&lt;/h1&gt;
                  &lt;/header&gt;
                  &lt;div class="entry-content"&gt;
                      &lt;div class="images" &gt;
                          &lt;a href="#" class="arrow prev" &gt;&lt;/a&gt;
                          &lt;a href="#" class="arrow next"&gt;&lt;/a&gt;
                          &lt;div class="wrap"  &gt;
                              &lt;?php 
                              $url = get_permalink();
                              $images = the_post_thumbnail();
                              $count = is_array($images) ? count($images) : 0;
                              if($count)
                              {   
                                  $n = 0;                         //$images[$i]['url']
                                  for ($i = 0; $i &lt; $count; $i++)
                                  {
                                      $l = $i * 100;
                                      $t = $i * -300;
                                      $big = image_downsize($images[$i]['id'], 'full');
                                      $medium = image_downsize($images[$i]['id'], 'medium');
                                      echo '&lt;a href="', $url,'" 
                                      class=" '.(($n==0)?'n':'').' image-holder"  '.(($n==0)?'id="n'.$i.'"':'').'&gt;&lt;img src="',$big[0],'"
                                       class="image"   /&gt;&lt;/a&gt;';
                                      if($n &lt; 2)
                                      $n++ ;
                                      else
                                      $n = 0;
                                  }
                              }
                              ?&gt;
                              &lt;div style="clear:both"&gt;&lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/article&gt;
          &lt;?php endwhile; // end of the loop. ?&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>It would be greatly appreciated if someone can help me figure this out.</p>