Title: Getting thumbnail and adding attributes
Last modified: August 20, 2016

---

# Getting thumbnail and adding attributes

 *  [Jurs](https://wordpress.org/support/users/jurs/)
 * (@jurs)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/getting-thumbnail-and-adding-attributes/)
 * Im building a “featured post” slider on a theme using foundation.
    Im using the
   Orbit script.
 * I would like to get the following output from a WP_Query
 * `<a href="POST LINK"><img data-caption="#POST-ID" src="THUMBNAIL"></a>`
 * Any help would be awesome.

The topic ‘Getting thumbnail and adding attributes’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [Jurs](https://wordpress.org/support/users/jurs/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/getting-thumbnail-and-adding-attributes/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
