Code Snippet Tutorial – Display Word Count of WordPress Post

BlakeConsultants - The Leading Experts in Biometric Access Control and Time & Attendance

This small code snippet will help you display the word count of a WordPress post for your fellow readers and is simple to implement if known how.

I’m sure you have seen some websites whereby they display the word count of the post and you wonder how it was done. This is a very simple technique and can be implemented in less than 5 minutes.

Please make sure you backup your themes custom_functions.php or functions.php file before you try this.

post code snippet Code Snippet Tutorial – Display Word Count of WordPress Post

This tutorial has been written for WordPress theme users and this simple function can be inserted within your functions.php/custom_functions.php file.

All you have to do is copy and paste the function from the download file and then reference it where you want it displayed. It should not take you longer than 5 minutes to implement.

Below are a few examples:

code snippet word count 1 Code Snippet Tutorial – Display Word Count of WordPress Post

Example 1: Display Word Count of Post

As you can see above, I have used this code snippet by the display of statistics on posts.

code snippet word count 2 Code Snippet Tutorial – Display Word Count of WordPress Post

Example 2: Display Word Count of Post

As you can see above, I have used this code snippet by the display of recent posts.

Code Snippet - Display Word Count of Post

The download was made available on 22 July 2010 and is in zip format. The file size is 472 bytes and has currently been downloaded 389 times.

Final Thought

So, how easy did you find it to implement? Would you use this on your current website? I would like to hear your opinions on this code snippet, so make sure to leave a comment.

You could go view the rest of my free downloads to see if you can find something that can help you or your business.

  • Twitter
  • Digg
  • Delicious
  • Submit post to StumbleUpon
  • Submit post to Facebook
  • Submit post to LinkedIn
From the desk of George Serradinho

I am the proud owner of Serradinho Blog and have made this my second home. I'm into blogging, downloads, WordPress, meeting and helping others, etc. Basically the internet in general :) Serradinho Web Services is my own company whereby I offer my services to clients. This ranges from web design, website upgrades, theme customizations, support, premium WordPress plugins and many more .....

View all posts by , there might be other posts that interest you.

{ 2 comments }

Paul/ Entertainment tonight September 9, 2010 at 8:05 am

It is a wise decision to back your theme before making some changes. This is what I have forgotten when I recently edited the code. I have to replace it with a new theme since the old theme is not working properly because of what I did.

Chrissy January 14, 2011 at 10:49 am

WOW. I was looking for a long time for this code/script/snippet and I finally found it. I still cant believe how easy it was to setup! I LOVE IT! Thanks so much :D

Comments on this entry are closed.

Previous post:

Next post:



    

Join our Revenue Sharing Program today.

Follow George Serradinho on Twitter - username: @gfserradinho.   Connect via Facebook.   Connect via LinkedIn.   Follow George Serradinho on Google.   Connect via YouTube.   Connect via Skype.

*/ ?>