Title: get_posts   comments template ?
Last modified: August 19, 2016

---

# get_posts comments template ?

 *  [dunkkan](https://wordpress.org/support/users/dunkkan/)
 * (@dunkkan)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/get_posts-comments-template/)
 * Hi guys,
 * I’m having some problems trying to call for a specific post in my sidebar, and
   allowing at the same time the comments for that post be visible (and active !)
 * Does anybody knows if there’s some incompatibility ?
 * I have a normal loop, a rewind_posts function to allow more tha one loop, and
   here it goes my ‘secondary-loop’ :
 *     ```
       <?php
       			 $posts = get_posts('include=440');
       			 foreach($posts as $post):
       				setup_postdata($post);
       			 ?>
       			<?php comments_template(); ?>
       			<?php endforeach; ?>
       ```
   
 * It doesn’t work even if I call for the_content.
 * My comment’s template is that from the default theme.
 * Please help

Viewing 1 replies (of 1 total)

 *  Thread Starter [dunkkan](https://wordpress.org/support/users/dunkkan/)
 * (@dunkkan)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/get_posts-comments-template/#post-979360)
 * I did it with WP_query + this code :
 * `<?php $withcomments = true; comments_template();?>`
 * found here : [http://wordpress.org/support/topic/166221?replies=3](http://wordpress.org/support/topic/166221?replies=3)

Viewing 1 replies (of 1 total)

The topic ‘get_posts comments template ?’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [get_posts](https://wordpress.org/support/topic-tag/get_posts/)

 * 1 reply
 * 1 participant
 * Last reply from: [dunkkan](https://wordpress.org/support/users/dunkkan/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/get_posts-comments-template/#post-979360)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
