title: wordpress recent posts show thumbnail
body: <p>How can I show either a small thumbnail of a image or featured image, from each post In my recent posts custom widget</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php
  
  include($_SERVER['DOCUMENT_ROOT'] . $root . 'blog/wp-load.php');
  
  $recent_posts = wp_get_recent_posts(array(
      'numberposts' =&gt; 3
  ));
  
  ?&gt;
  
  &lt;h3 class="divider"&gt;Recent Blog Posts&lt;/h3&gt;
  &lt;ul class="listing"&gt;
  &lt;?php foreach($recent_posts as $post) { ?&gt;
      &lt;li&gt;&lt;a href="&lt;?php echo get_permalink($post['ID']) ?&gt;"&gt;
      &lt;div&gt;&lt;?php echo $post['post_title'] ?&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;?php } ?&gt;  
  &lt;/ul&gt;
  </code></pre>