Show Post & Comments Count in Blogger / Blogspot Blogs



show post comments count in blogger blogsAre you having too many posts or comments in your blogger blog? Let your readers view the total post and comments count in your blogspot blog. This is a pretty good when you have a large blog and want to impress your readers with the no of your blog and comments count. You have to add a simple widget to your template, that’s it. But remember that this widget counts all published posts and comments only and will show it. This does not calculate your unapproved comments or unpublished posts, drafts. I have seen bloggers getting more subscribers after adding this number count in their blogs. Let’s know how to add a posts & comments count widget in blogger blogs.

blogger post comments

1. Log in to your blogger account and navigate to Dashboard >> Layout >> Page Elements >> Add a Widget >> HTML/JavaScript

2. Copy and add the following code to your HTML/Javascript widget.

<script style=”text/javascript”>
function numberOfPosts(json) {
document.write(‘Total Posts: <b>’ + json.feed.openSearch$totalResults.$t + ‘</b><br>’);
}
function numberOfComments(json) {
document.write(‘Total Comments: <b>’ + json.feed.openSearch$totalResults.$t + ‘</b><br>’);
}
</script>
<ul><li><script src=”http://yourblog.blogspot.com/feeds/posts/default?alt=json-in-script&callback=numberOfPosts”></script></li>
<li><script src=”http://yourblog.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments”></script></li></ul>
<center><span style=”font-size:75%;”><a href=”http://www.Solidblogger.com/” rel=”dofollow”>Get This Widget</a></span></center>

3. Replace yourblog with your actual blog name in the above code.

4. Save the widget and rearrange it according to your preference.

5. You are Done.

Now this will show post & comments count in your blogger/blogspot blog. This blogger widget will fetch all your blogger post and comments count from your blog’s RSS feed and will show them. If you have not activated your blog’s RSS feed, do it now, else this blogger trick will not work. [via]

Related Posts Plugin for WordPress, Blogger...

Related posts:

  1. Add Related Posts Widget in Blogger / Blogspot Blogs
  2. Add Recent Comments Widget in Blogger / Blogspot
  3. Show Your Twitter Updates On Blogger/Blogspot
  4. How To Show Comments On Blogger / Blogspot Posts
  5. Remove Or Hide Label Number Count In Blogger / Blogspot
  6. How To Disable Right Click in Blogger/Blogspot Blogs!
  7. Show Numbering Comments (Comment Numbers) in Blogger
  8. Show Animated Image Icon Before Post Titles in Blogger / Blogspot
  9. Enable Or Disable Word Verification For Comments On Blogger/Blogspot
  10. Import Blogger Posts, Comments, Labels from Blogspot to WordPress

Filed in: Blogspot
Tagged with:

Comments (4)

Trackback URL | Comments RSS Feed

Sites That Link to this Post

  1. 15 Useful Blogspot Widgets and Hacks | October 14, 2009
  1. According to your widget the number of comments on my blog is 543… this is to much, i have just a few comments.. let's say max 15…

    so… what's happening ?

  2. R.yadav says:

    this is not working in my blog

Leave a Reply

Back to Top