Title: get_posts returning comments aswell
Last modified: August 19, 2016

---

# get_posts returning comments aswell

 *  [Rincewind](https://wordpress.org/support/users/rincewind/)
 * (@rincewind)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/get_posts-returning-comments-aswell/)
 * I have a plugin that I wrote for a sitemap, and was originally using query_posts,
   have now swapped over to using get_posts instead but since doing this I have 
   noticed that for the posts it returns if there is any comments on the posts it
   will show them at the bottom of the sitemap and with a box to leave a comment
   despite me having comments turned off for the page.
 * Is there anyway to stop this when using get_posts.

The topic ‘get_posts returning comments aswell’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [Rincewind](https://wordpress.org/support/users/rincewind/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/get_posts-returning-comments-aswell/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
