display your posts words count in wordpress

If you want to display the words count in your post. you should use the following code in functions.php file.

If you are not wordpress developer then dont use this code in your theme files.

function wcount(){
 ob_start();
 the_content();
 $content = ob_get_clean();
 return sizeof(explode(" ", $content));
}

 

In single.php file put following code for showing the word count.


echo wcount();

Source

You may like following Articles!

  • http://www.nmaea.com/ Buy Tramadol

    Great post. Just a heads up – I am running Ubuntu with the beta of Firefox and the navigation of your blog is kind of broken for me.

  • http://uautocity.info Joan Dafoe

    Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!

  • http://uautocity.info Myles Glaue

    I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.

  • http://best-antiaging.info Shery Fraize

    Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.

  • http://ecommerce-web.info Chang Welland

    I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!

  • http://top-skincare.info Carmon Gata

    Awesome post. I so good to see someone taking the time to share this information

  • http://uautocity.info Quentin Ghoston

    This post makes a lot of sense !

  • http://affiliatetown.info Kiera Badanguio

    I REALLY liked your post and blog! It took me a minute bit to find your site…but I bookmarked it. Would you mind if I posted a link back to your post?

  • http://businesscardorder.info Laura Lough

    I’ve been checking your blog for a while now, seems like everyday I learn something new :-) Thanks

  • http://best-stress-management.info Shannon Janosek

    I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.

  • http://universitiesmap.com Sigrid Tirpak

    This post makes a lot of sense !

  • http://businessandmanagement.info Adrian Falvo

    Great read. Thanks for the info!

  • http://www.ifoodlinks.com/ Carmon Gata

    I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.