Title: Comments displaying incorrect comments
Last modified: August 18, 2016

---

# Comments displaying incorrect comments

 *  [dcostalis](https://wordpress.org/support/users/dcostalis/)
 * (@dcostalis)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/comments-displaying-incorrect-comments/)
 * This should have been under “misc”. sorry…
 * In single page view, everything displays fine, except the comments section always
   displays comments from the same page… post id 17. I had disabled plugins and 
   had no custom code, but it still gave the same errors.
 * wordpress version 2.3.1. Site: [My Site](http://www.whathuhstudios.com/press/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [dcostalis](https://wordpress.org/support/users/dcostalis/)
 * (@dcostalis)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/comments-displaying-incorrect-comments/#post-663892)
 * Well, fixed it. This appears to be a bug in the widgets, or in the comment_template,
   though its hard to tell. What happened is the $id variable was still set from
   the “recent posts” widget, so comment_template didn’t check to set the $id variable
   to the current posts id… can i submit this bug somewhere? i think that a simple
   unset($id); at the end of the recent posts widget will fix this.

Viewing 1 replies (of 1 total)

The topic ‘Comments displaying incorrect comments’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 1 participant
 * Last reply from: [dcostalis](https://wordpress.org/support/users/dcostalis/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/comments-displaying-incorrect-comments/#post-663892)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
