How to obtain comment count for a list of posts?
See original GitHub issuefetching the comment count for a single post is a breeze using const { count } = useComments()
However, how would you go about fetching the comment count when you have a list of multiple posts?
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Show comment counts in your post lists
To show a post's comment count in an index or list view, simply add the following HTML where you want to show the...
Read more >Howto show comment count by post in post?
I would like to show comment count IN the post (not in post meta), is there a snippet how to do this or...
Read more >List Popular Posts By Comment Count - WP SITES
List Popular Posts By Comment Count. In this post, i'll show you how to create your own new WP_Query & custom loop. Your...
Read more >Get number of approved comments of post - Stack Overflow
The problem is: It returns the total comment count (including deleted comments etc.) I only want to show the number of approved comments....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Works like a charm!
I’m excited to see what else you come up with 😎
Entire view query for context: