Total Posts and Comments Widget for blogger

Here's a cool widget for blogger, to show total number of Posts and Comments about your site.

If you have a good amount of posts and comments, you should use this widget, as it will give a good impression to your site.

How to Apply:

* Login to blogger -> Dashboard -> Layout/Page Element -> Add a Gadget

* Choose HTML/Javascript

* Paste the following code:

<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>');
<font ><script src=""></script>
<script src=""></script></font>

* Name it to what ever you like (siteinfo, statistics etc) and save it.

* That's it!

Note: Change my site url "" to your site url. You can also change the Total Posts: and Total Comments: text to whatever you like.

Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

Related Posts

7 comments: on "Total Posts and Comments Widget for blogger"

Vinayak said...

this was what I was looking for
will definitely do it

the adamant soul said...

it's a nice code...newly installed in my new blog..

check out...

mk said...

thnks for the widget...let me try this one!!
and thnks for ur comment!

angel from heaven said...

Another good tip.ill definately try it thanks for sharing.

gameboy said...

thanks for the great widget.its working fune in my blog...

Dr Roshan R said...

hey.. i added the code but mine is showing way less comments than the real number.. any idea why ? Is there something like Blogowners comments are not added ?

Dan* said...

@ Dr Roshan R

I think the problem may be with the feeds.... dont worry it will be temporarily....

Post a Comment