title: WordPress: echo featured image in img tag
body: <p>i am trying to fetch feature image in page template and print it in bootstrap code block like this </p>
  
  <pre><code>    &lt;div class="container"&gt;
              &lt;?php
                  $args=array('post_type' =&gt; 'partner');
                  $query= new WP_Query($args);                               
                  // Start the Loop.
                  while ($query-&gt; have_posts() ) : $query-&gt;the_post()?&gt;                                    
  
           &lt;div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"&gt;
             &lt;img src="&lt;?php  echo the_post_thumbnail();?&gt;" class="img-responsive"&gt; 
           &lt;/div&gt;
        &lt;?php                                
            endwhile;
         ?&gt;
  
      &lt;/div&gt;                             
  </code></pre>
  
  <p>this is not printing image whats wrong with it please help </p>