title: How to retrieve featured images from custom post type?
body: <p>I have created Custom slideshow post type.Images set as featured images for each new slide post. I want to retrieve these image in slideshow template. </p>
  
  <p>HTML markup for this slide template is:</p>
  
  <pre><code>&lt;div class="wrapper"&gt;
  &lt;ul id="my-slider" class="my-slider"&gt;
  
  &lt;li&gt;
  &lt;a href="http://www.flickr.com/photos/photo/123456" target="_blank"&gt;&lt;img src="images/1.jpg" alt="image1"/&gt;&lt;/a&gt;
  &lt;div class="my-description"&gt;
  &lt;h3&gt;Image one&lt;/h3&gt;
  &lt;/div&gt;
  &lt;/li&gt;
  
  &lt;li&gt;
  &lt;a href="http://www.flickr.com/photos/photo/1234565" target="_blank"&gt;&lt;img src="images/2.jpg" alt="image2"/&gt;&lt;/a&gt;
  &lt;div class="my-description"&gt;
  &lt;h3&gt;Image two&lt;/h3&gt;
  &lt;/div&gt;
  &lt;/li&gt;
  
  
  &lt;li&gt;
  &lt;a href="http://www.flickr.com/photos/photo/12345655" target="_blank"&gt;&lt;img src="images/3.jpg" alt="image3"/&gt;&lt;/a&gt;
  &lt;div class="my-description"&gt;
  &lt;h3&gt;Image three&lt;/h3&gt;
  &lt;/div&gt;
  &lt;/li&gt;
  
  &lt;li&gt;
  &lt;a href="http://www.flickr.com/photos/photo/12345666" target="_blank"&gt;&lt;img src="images/4.jpg" alt="image4"/&gt;&lt;/a&gt;
  &lt;div class="my-description"&gt;
  &lt;h3&gt;Image four oner&lt;/h3&gt;
  &lt;/div&gt;
  &lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This HTML gives four slide images as I hard-coded it.How to retrieve attached image dynamically from wordpress custom post type to get the same result?</p>