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]

We will send you some more information related to Show Post & Comments Count in Blogger / Blogspot Blogs

Below are some more related articles to the topic:

Add Recent Comments Widget in Blogger / Blogspot
How To Show Comments On Blogger / Blogspot Posts
Add Related Posts Widget in Blogger / Blogspot Blogs
Show Your Twitter Updates On Blogger/Blogspot
Show Animated Image Icon Before Post Titles in Blogger / Blogspot

Tags: , ,

4 Responses to “Show Post & Comments Count in Blogger / Blogspot Blogs”

  1. Claudiu Constantin 08. Oct, 2009 at 7:42 pm #

    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 03. Nov, 2009 at 12:11 am #

    this is not working in my blog

  3. Can you fight 10. Nov, 2009 at 9:20 pm #

    This does not work

Trackbacks/Pingbacks

  1. 15 Useful Blogspot Widgets and Hacks - 14. Oct, 2009

    [...] Post and Comment Count: A little bragging never hurts. So, why not show total number of posts and comments in your sidebar? It will also serve as social-proof to new visitors! [...]

Leave a Reply