• 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. Please use the pastebin]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter alexDevMilagro

    (@alexdevmilagro)

    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)

    (@otto42)

    WordPress.org Admin

    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.