How To get Blogger Total Number of Posts and Comments

You can add the total number of posts and comments as a blogger gadget. In your design page, add an HTML/Java Script gadget, and put in the following code:

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 src=";callback=numberOfPosts"></script>
<script src=";callback=numberOfComments">

that's it !

Post a Comment