• How do you determine if there are comments within the loop in single.php? I’ve tried have_comments(), using the global $comments variable, and even comments_number(), and nothing seems to work.

    I’m able to display the number of comments in the loop by using comments_number(), but I need to setup a conditional so that if comments_number = 0, don’t display anything.

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

The topic ‘Comments Conditional in Loop’ is closed to new replies.