Title: How to display thumbnail AngularJS and WordPress
Last modified: August 21, 2016

---

# How to display thumbnail AngularJS and WordPress

 *  [mattkrupnik](https://wordpress.org/support/users/mattq/)
 * (@mattq)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/angularjs-and-wordpress/)
 * Hello,
 * I have some like that:
 *     ```
       <div class="post"  ng-repeat="task in tasks">
       	<div class="img"><?php echo get_the_post_thumbnail( {{task.ID}} , 'thumbnail');  ?></div>
       	<h3 class="title_post"><a href="{{task.post_name}}"><?php echo $pid; ?>{{task.post_title}}</a></h3>
   
       </div>
       ```
   
 * All works fine – title is showing up `{{task.post_title}}` but how to display
   post thumbnail ? When I do some like above that doesnt work.
 * I was try insert `{{task.ID}}` into php varible like `$id = "{{task.ID}";` and
   $id was showing up for each post but wehn I put it into function like `get_the_post_thumbnail(
   $id , 'thumbnail');` that also doesnt works.
 * Any suggestions ?

The topic ‘How to display thumbnail AngularJS and WordPress’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [mattkrupnik](https://wordpress.org/support/users/mattq/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/angularjs-and-wordpress/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
