title: Wordpress featured image as div background image
body: <p>How can I set the featured images on all my posts to be outputted as a background image to a div. For example       </p>
  
  <pre><code>&lt;div class="postimg" style="background-image:url('https://s3.amazonaws.com/ooomf-com-files/8jLdwLg6TLKIQfJcZgDb_Freedom_5.jpg')"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Currently the featured image is being outputted as a regular image using this helper <code>&lt;?php the_post_thumbnail( 'wpbs-featured' ); ?&gt;</code></p>