Use the comments number function or the more native get_comments_number function and combine it with the page comments option if ( get_option( page_comments ) == TRUE ) // do stuff
Related Posts:
- Paginate result set from $wpdb->get_results()
- Reverse comment pagination numbers
- Is there any way to override “break comments into pages” and “close comments for old posts” on certain posts, but not on others?
- How to no follow the paginated comments
- Comments Pagination as an unordered list
- How to add pagination to comments?
- Comment pagination – How to show determined number of comments on the first page?
- changing comment-page-# to something like review-page-#
- How do you turn on comments for only the last page of a paginated post?
- Redirect to page 2 after comment
- How to display html in only the first level of WP comments?
- Set noindex page-comment from Pages 2, 3 and More?
- Pagination Comments Doesn’t Show
- Comment Form – E-mail Not Required!
- PAIN. Comments Pagination
- Best way to tell if a comment is from a user?
- Why could my comment_form variable not be working?
- assumed as comment line
- Comment Pagination
- get_query_var(‘paged’) for WP_Comment_Query always return 1 when using paginate_comments_links()
- Comments pagination: reverse JUST the links texts (1-2-3 to 3-2-1), not comments order
- What is wrong with this? [closed]
- Comments pagination on author page
- Comment submission & navigation redirects to default language
- WordPress comment pagination : newest comments on first page
- Pagination comments
- Remove “#comments” from comments pagination url
- 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?
- Allow variable amount of comments before pagination
- 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
- Using filter to add additional fields to comment_form()
- Disable wordpress comments API
- Comments waiting but no comments found
- Programmatically block commenting by restricting view of comment form
- Change comments form title on a page by page basis
- Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins
- How to add text to comment form #content textarea?
- Remove “says” from comments
- 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
- List User Comments on User Profile BuddyPress [closed]
- 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?
- comments_number display outside specified span
- 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
- Where to add the permalink in this function?
- have_comments() does not work
- How to use the ‘comments_number’ filter?
- How to allow duplicate comments AND without comment text
- Remove the deleted user comment
- Cannot post comments if I don’t post a website?
- Where to call my pagination function?
- How Do I Allow Comment Moderation for Other User’s Posts?
- How to display custom comment fields onto any page
- Make every comment go to the spam folder
- Limit number of comments from get_comments()
- The comment could not be saved. No comment_ID on comments
- ‘comment_post’ hook doesn’t seem to work? [closed]
- count number of all comments by a user on different (non-repeated) posts
- Facebook comments widget – App ID
- Comments screen in backend, how to disable visual editor when replying to a comment
- Adding a comment link to the top of every post
- Comment form in wordpress theme returns a javascript alert
- Embedding local video in WordPress comments
- Enable comments pagination only amp page
- Difference between date and date_gmt
- How do I edit Comments.php so I can add Schema markup to comment output?
- Check if comment author has url
- Migrate comments and likes wordpress.com to selfhosted site
- Comment function for page
- How to enable truly anonymous posting in bbPress forums? [closed]
- Prevent author from editing comments from others in their post
- Display Most Recent Three Comments Per Post
- How to fix blank pagination links?
- Front End User(bloger) turn on and off his comments
- Does not show comment list
- Can’t post comment to blog in wp-multisite
- Show ‘add comment’ link for status updates in Twenty Thirteen
- Pull & display new comments without refreshing the page
- How to display comments by logged in user and responses?
- Identify and display the fact that user is admin next to username in comment section
- Display facebook comments made on site
- Disable Link to Post from Showing Up in Post’s Comments?
- db query for retrieving comments without any reply
- Function to get a list of all comments on 1 post [closed]
- How to Allow Users to Select Recipients In a WordPress Comment section?
- comment_approved custom value
- Add pending for reply comment in console WordPress