Skip to content
A simple word count / excerpt plugin for ExpressionEngine
Find file
Latest commit dbd8f11 @thinkclay Update third_party/excerpt/pi.excerpt.php
Fixing formatting from tabs to spaces

Excerpt Plugin

Wrap anything you want to be processed between the tag pairs. This will strip out all tags automatically and do a limit on words after.

{exp:excerpt limit="50"}text you want processed{/exp:excerpt}


Use the following parameters to specify what the plugin should return.


The limit parameter lets you specify how many words or characters to return. Default 500


The limit_type parameter lets you specify if you want to limit to words (words) or characters (chars).
When limiting to chars, the plugin returns whole words, so the actual number of charactars migh be slightly larger.

{exp:excerpt limit="2" limit_type="chars"}Hello World{/exp:excerpt}
returns: Hello


The indicator parameter can be used to append characters onto the end of the content, if it has been limited.

{exp:excerpt limit="1" indicator="..."}Hello World{/exp:excerpt}
more than limit words, returns: Hello...

{exp:excerpt limit="2" indicator="..."}Hello World{/exp:excerpt}
Not limited, returns: Hello World


 Version 1.0.2

  • Added limit_type = words | chars

 Version 1.0.1

  • Added indicator parameter

Version 1.0

  • Initial release

thinkclay, bryantAXS, GDmac

Something went wrong with that request. Please try again.