title: Wordpress get_post_thumbnail_id not returning anything
body: <p>Why is it when I use <code>wp_get_attachment_image_src(get_post_thumbnail_id($post_id));</code> I get nothing however when I <code>var_dump</code> the <code>post_id</code> I get <code>string(3) "652"</code> so I know that there is a ID</p>
  
  <p>Without <code>(string)</code> it gives me <code>int(652)</code></p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>&lt;?php
      $getPosts = new WP_Query(array('showposts' =&gt; 5, 'orderby' =&gt; 1));
  
       if($getPosts-&gt;have_posts()):
            $firstPost = true;
  
            while($getPosts-&gt;have_posts()):
                  $getPosts-&gt;the_post();
  
                $cssClass = '';
  
                if($firstPost)
                {
                  $cssClass = array('article','first-post');
                  $postValue  = get_the_ID();
                  $post_id    = (string)$postValue;
                }else{
                  $cssClass = array('article');
                }
  ?&gt;
  
  &lt;?php if($firstPost): ?&gt;
      &lt;?php $image =  wp_get_attachment_image_src(get_post_thumbnail_id($post_id));?&gt;
      &lt;a href="&lt;?php echo $image[0];?&gt;"&gt;Test&lt;/a&gt;
  </code></pre>