Showing Off Total Comments and Trackbacks on WordPress Blog

Now this one is really cool and simple. You can display total comments and trackbacks made on your blog using some simple copy-paste codes. You can see at top-right corner of my blog that how different look and show-off you can give to your blog by using this.

display total comment trackback on wordpress blog ijustutter

It involves editing your wordpress theme files. So first thing is to backup. Again as seen in Floating share bar guide; you can use it in on whole site, just main page or just posts.

If you want it for whole site and at top then best choice would be ‘header.php’ file. For posts, I would have preferred ‘single post. php’ file and for just main page go with ‘Main Index php’ file. You can also put this code in sidebars. You won’t be able to use it widgets but you can edit ‘sidebar php’ file and paste this code there.

Only problem is choosing the location when you want this stuff in header. It should be pasted after the logo and before header ends. There can be Sliders and Menus in between so you will need to choose location by trial and error.

First thing; backup the file you are going to edit. Then copy-paste this code in your file (present in theme’s folder);

You can remove trackbacks code if you don’t want it.

Now what about little styling so that you change the font, color, size etc of displayed text?

Add this in end of your theme’s ‘stylesheet css’ file;

You can modify it as per your wish to suit your site’s theme.

I hope this worked for you. Comments and issues are welcome!

Creative Commons License
Showing Off Total Comments and Trackbacks on WordPress Blog by Mrinal Buddekar is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Mrinal Buddekar

A Research Professional, Doctor, Technology Blogger
Mrinal Buddekar is a founder of I Just Utter. He is a technology enthusiast and author of many guides and how-to. Mrinal likes web development, linux, server administration and programming.