Saturday, October 20, 2007

Total number of posts on a Blogger blog

Here is blogger hack to show the total number of posts on your blog.

It uses JavaScript and JSON (JavaScript Object Notation).

The only thing you need is to change ChangeThisToYourBlog in the code below to the name of your blog.

<script style="text/javascript"> function showpostcount(json) { document.write('Posts on this blog ' + parseInt(json.feed.openSearch$totalResults.$t,10) + '<br>'); } </script> <script src="http://ChangeThisToYourBlog.blogspot.com/feeds/posts/default?alt=json-in-script&callback=showpostcount"></script>

2 comments:

JTB World said...

Restored comment
by Kobus
Thank, I've been searching for something like this for a while.

JTB World said...

Restored comment
by Anonymous
Thanks, worked perfectly for me.

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner

Contact Us | About JTB World | Subscribe to this blog | JTB World's website
^ Top of page

© 2004-2009 JTB World. All rights reserved.