Title: if($comments) returning false always
Last modified: August 19, 2016

---

# if($comments) returning false always

 *  [alexDevMilagro](https://wordpress.org/support/users/alexdevmilagro/)
 * (@alexdevmilagro)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/ifcomments-returning-false-always/)
 * I know for a fact that I have comments, yet it’s constantly returning false. 
   I have an empty functions.php file, no js actcing on it etc.
 * It’s on a dev server so I can’t link but I assure you I changed almost nothing
   since installing 3.0.4. since this is a new site.
 * Let me know.
 * THIS IS THE LOOP:
    _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [alexDevMilagro](https://wordpress.org/support/users/alexdevmilagro/)
 * (@alexdevmilagro)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/ifcomments-returning-false-always/#post-1879444)
 * The reason I’m not just linking comments_template() is because that wasn’t working
   so I”m hardcoding for debug purposes..
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [15 years, 3 months ago](https://wordpress.org/support/topic/ifcomments-returning-false-always/#post-1879449)
 * You _must_ use the comments_template() function. The comments are not actually
   pulled out of the database unless you use that function.
 * In other words, the $comments variable will be empty until you call the comments_template()
   function and it goes and loads the comments.php file.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘if($comments) returning false always’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/ifcomments-returning-false-always/#post-1879449)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
