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:

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

    ReplyDelete
  2. Restored comment
    by Anonymous
    Thanks, worked perfectly for me.

    ReplyDelete

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner

Contact Us | About JTB World | Website General Terms of Use | Privacy Policy
^ Top of page

© 2004- JTB World. All rights reserved.