User login

Greg Harvey

Display the word count of a piece of content

In the most useful comment on a thread of useful comments, Greg Harvey describes how to get the word count for a node in the template level: access just the body portion of the content variable for a node in and count the words in template.php, then output this variable in node.tpl.php.

Syndicate content