You could try this, must be used in the loop:
<?php
// type = comment will only get "real" comments, no ping-/trackbacks
$comments = get_comments(array('type' => 'comment'));
$threads = 0;
foreach($comments as $comment) {
// if the comment has no parent, it´s the first of a thread
if($comment->parent == '') { $threads++; }
}
switch($threads) {
case 0: echo "There are no comments so far."; break;
case 1: echo "There is one thread..."; break;
default: echo "There are '.$threads.' comment threads going on."; break;
}
?>
Related Posts:
- show number of open comments on custom dashboard
- Comment Count for each Comment Author
- Threaded comments – deleting parent comment leads to orphan comments
- Get threaded comments number
- Last comment page first with full number of comments?
- WordPress comment count to include attachment comments
- Toggle nested comments
- Threaded commenting: how to show threads by last active first?
- How can I count only guests comments?
- How many members have made comments approved for an article?
- counting trackbacks, pingbacks and comments of a post
- How to Define Custom Number of Items in Comment Feed
- It doesn’t matter if I have more than one comment. get_comments_number still equal to one?
- How include comment and post count of user in this custom query
- How to enable reply button on mostly deeply-nested comments? [closed]
- How to force users to nest their comments
- different levels of nested comments per page
- Disable comments on all posts/pages
- Stop WordPress redirecting comment-page-1 to the post page?
- Importing old Disqus comments into WordPress
- How to add a class to the comment submit button?
- Would switching to InnoDB from MyISAM improve performance of comments table?
- Linking to Page Showing Only Comments Without Parent Post
- Post Comments using WP REST API v2 in WordPress
- Show content only if member left a comment
- Parent comment’s author name
- get_comments_number of depth-1 (Level 1) (1 post)
- Using filter to add additional fields to comment_form()
- Disable wordpress comments API
- List Recent Comments from Across a Multi-site Network
- Comments waiting but no comments found
- Programmatically block commenting by restricting view of comment form
- Number of External Links in Comments – Moderation Option
- Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins
- Plugin from WordPress.com for comment notification…available? [closed]
- How to add text to comment form #content textarea?
- Get most active users sort by comment count
- Passing arguments to wp_list_comments callback function
- What are the additional fields in wp_comments used for?
- comments_template not working correcly in custom template files
- Why are my comments closed?
- How to change style of Disqus comment count on main page
- Adding another arg to comments_popup_link
- Exclude Duplicate Posts in this SELECT Query
- List User Comments on User Profile BuddyPress [closed]
- Filter custom comment type from Manage Comments & Dash Widgets
- How to allow more HTML tags in comment for a certain comment_type
- How to deal with spam comments and distinguish them from non-spam comments?
- comment_post action hook running on page load instead of after a comment is posted
- User’s total comment count excluding comments on their own posts
- How to get all comment authors of a single post?
- Get return value of wp_insert_comment (comment ID)
- comment_reply_link not work with me
- How do I reply to comments from admin panel on a tablet PC?
- Disable comments for a user? [closed]
- Polls with respective comments?
- Why does akismet prevent jetpack comments from appearing in my moderation queue? [closed]
- Ajax submit comments
- I cannot view the comments
- Problem with WordPress Comment
- In wp_list_comments comment dates won’t work?
- Where are comment ratings stored?
- Comments change the template name
- how to SELECT for the current post id?
- WordPress scruity issue – Totally disable all comments by CSS — secure enough?
- wp_new_comment requires author url and author email
- Custom comment link
- How to display the user’s comment status on the front end
- get_comments_number() vs. get_post_field( ‘comment_count’, ID )
- Where are comments coded when using custom theme?
- What is the point of get_comment_count() if you cannot limit by a comment type?
- Wrong IP address in comment section
- Comments turned off, but ‘Leave a reply’ link still there [duplicate]
- How to output number of comments with link to comments
- How do I make Twenty Ten display comments on the home page?
- How to remove the “comments” bit that appears next to or below the posts
- Sort post comments from newest to oldest in pagination
- How do I add custom field to Admin comment form and display
- Using Disqus with headless WordPress setup?
- Attaching author tag to the comment
- Pre- Approved Comment Capability
- Delete comments function
- Comment form not working
- How to show a “Comments Are Closed” message on posts where comments have been closed?
- Comments pagination on author page
- Comments page id wp_list_comments
- Inserting comments via a procedure
- Can I use WP comments for custom tables?
- How can I have a full comments.php for an easy editing of all its aspects?
- Transfer comments from one domain to another
- WordPress is adding above html
- Passing user meta through comment form
- writing a plugin, how to disable the comment form altogether?
- Function to get a list of all comments on 1 post [closed]
- Display DISQUS on homepage
- How to stop a specific person to comment on my blog? [closed]
- Auto delete WordPress comments
- Customize the new comment notifications sent to the post author after the comment is approved
- Get approved comments or comments that the author is me
- Show/Hide comments