I'm trying to count the number of live comments on each post. I would like to extract them on a custom page like http://example.com/count.php
and have them output like this:
http://example.com/the-post-url-with-3-comments/ 3
http://example.com/the-post-url-with-no-comments/ 0
http://example.com/the-post-url-with-12-comments/ 12
The spacing between all the posts don't matter quite as much, I just need the two columns with all my posts and number of approved comments.
I have come close to doing this with this post and using echo get_comment_count( 149 );
but it only uses one post at a time. I would like to extract all the posts.
Thanks for your help.