NP_WordCount

Displays the number of words in the current entry. Can display count of body, extended entry, or both together. Can also strip HTML tags before counting, or insert commas into the number.

General Plugin info
Current Version: 1.0
Download: Download this plugin
Forum Thread: Discuss on the forum
Author: Joel Pan (ketsugi) (http://ketsugi.com)

Syntax

<%WordCount%> will display the number of words in the entry, using the default settings as given by the plugin options. Use this in a template.

Optional Syntax

To override the default settings use this syntax: <%WordCount(part,strip,commas)%>

  • part - possible values: body|more|full
    Tells WordCount which part of the entry to count words from
  • strip - possible values: yes|no
    Tells WordCount whether or not to strip HTML tags before counting
  • commas - possible values: yes|no
    Tells WordCount whether or not to insert commas into the number

Changelog

  • 1.0 (23 January 2006) - Update of version number to denote stable release.
  • 0.11 (5 April 2005) - Bug fix.
  • 0.10 (5 April 2005) - Initial release.
wordcount.txt · Last modified: 2008/01/03 23:03 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki