Widget plugin for show total posts and total comments in your blog or website.

Total post comment counter widget

You need to go to dashboard every time to see all posts and comments. Get a widget to show your all numbers of post and comments to your viewers. Just copy little html code in your website and get a widget for your blog or website.

For example widget for this blog:


This html code is light and fast loading. Whenever you post new posts or you get new commnets on your blog this widget will automatically updates it numbers of post and comments. Very fast loading widget save the time of your blog insteads some heavy coded widgets. This widget gives a professional look to your visitors.

How to Add widget to blog:

  • Go to your blog's dashboard.
  • Click on Layout tab to access layout page.
  • Click on add new gadget where you want to place your widget.
  • Choose HTML/java script in newly appeared window.
  • Copy paste the following code in that widget.

<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>');
}
</script>
<ul><li><script src="http://YOURSITE/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script></li>
<li><script src="http://YOURSITE/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></li></ul>
<span style="font-size:75%;"><a href="http://fonthindi.blogspot.in/2014/01/widget-plugin-for-show-total-posts-and.html" target="_blank">Get it</a></span>

  • Just replace YOURSITE with your website address. For example if your website address is www.example.com then delete YOURSITE and write example.com
  • Save your widget and you've done it.
If still there is any problem let me know.
Previous
Next Post »

1 COMMENT

Write comments
3 July 2018 at 10:42 ×

Hi, i absolutely got tons of value from your post. Please i have 2 quick questions.
1. What is the number of plugins every blogger shouldn’t exceed? I currently have about 18 installed, would you consider that number outrageous. Please could you also check out my site and offer me a
2. Your font is really beautiful. would you suggest plugins that would give me beautiful fonts just like yours?
Finally, would you spare a few seconds to check this site and offer me your candid advice http://www.samozoani.com

Congrats Harish enlights you are the first :)
Reply
avatar

If you are asking question, be sure to check 'notify me' check box to get your answer notification. Promotion links are not allowed. ConversionConversion EmoticonEmoticon