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>');
<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.
Next Post »

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