features category image instructions category image Post Word Count and Total Posts

Posted on October 26, 2009 and last modified on October 27th, 2009.

Two more simple but useful functions have been added to this theme via the functions.php file.

1. Post Word count which displays under the post title on the single post page. Use this code to implement.

<?php echo wcount(); ?>

2. The Total Posts on the site which can be seen on the front page [very close to the bottom of the page]. Use this code to implement.

<?php echo $numposts.' '; ?>

Related Posts:

Page/Post Option – Left, Right or No Sidebar
Author’s Details in Every Post
Set Individual Styles for Specific Posts
Adsense Code in Post and Pages

About the author

James has added 29 posts to this site so far...

Founder and co-admin at FreshlyPressed, James also runs and maintains many, many other sites including JamesICT which is very much focussed on WordPress and all of its little idiosyncrasies. He now lives in Brighton, England with his fiancée and writes novels in his spare time. His latest work, 'Procrastination Expectancies' is due out later this year - or maybe the year after that! [more...]

Other posts by James

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>