Show posts and comments stats in Blogger

                            One of the best widget is to show total number of blog posts and number of reader comments on your blog . For showing the number of posts and comments if the number is too huge and on top if your blog is DO-FOLLOW , its very useful . By blog statistics, this statistics widget displays the total number of posts and the total number of comments made on your blog as a widget that can displayed anywhere in blog and is live real time , thats  if anyone comments or blog admin posts , then the stats update at once and therefore one of the best blogger hack !
This widget works using javascript ( the json feeds) which calculates the number of comments and posts from your blogs feed , the Atom one and not RSS one

This is only for Blogger
not wordpress or joomla or livejournal as there are many  plug-ins available for that !
This code is very light weighted and efficient and does not take any time to load blog slower .
Adding HTML coding requires just a minute to add in Blogger

To add this widget go to  
  • Layout  
  • Add a Gadget  
add da code shown below

<script src=""></script>

<script style="text/javascript">
function numberOfPosts(json) {
document.write('Total number of Posts: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
<script src=""></script>
<script src=""></script>

<script style="text/javascript">
function numberOfComments(json) {
document.write('Total number of Comments: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
<script src=""></script>

Just replace qwertyweb by your blog name


recall software said...

superb sharing

This is really Good Information Thanks Again

ASP Dot Net Development said...

Very Informative Posting Such a Good Inforamation

Thanks for sharing

New York City Photographers said...

Thanks for the Nice Post.. I'll definately try it on my Blog...

Southern California Ice Sculptures said...

Many many thanks for this tip!!!

Wedding Officiant Long Island said...

Thanks for the Post.. I Think its Really Work for Me..

Destin Weddings said...

Cool. I love it. Any idea how to show a few comments under each post on the homepage?

Xicom said...

Hey very nice blog!! Man .. Beautiful .. Amazing .. I will bookmark your blog and take the feeds also discovered almost all peoples will agree with your blog.

Post a Comment

Comments are Do-Follow and Strictly Moderated
Please dont use keywords like money , cheap sales etc that appears to be spammy or self promoted
Use either your name or Site / Blog name
Comments should have greater than 20 words/2 lines or wont be published .
So Please make sure to read Comment Policy and Privacy Policy if you are commenting for the 1st time .