title: How to get the featured image and put it's image path in to inline styles ie. <div style="background:url(filepath/here)";>?
body: <p>I've got this line of code -</p>
  
  <pre><code>&lt;?php the_post_thumbnail('latest-img'); ?&gt;
  </code></pre>
  
  <p>which is pulling in the correct featured image, however when I try and put -</p>
  
  <pre><code>&lt;div class="blog-image" style="background:url('&lt;?php the_post_thumbnail('latest-img'); ?&gt;');"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>it doesn't show.</p>
  
  <p>Does anyone know what I'm doing wrong?</p>