count_characters

Returns a number corresponding to the number of words and spaces in the string the tag would normally output.

If Blog Name is “My Awesome Blog” then this tag would output the number “15”

<$mt:BlogName count_characters="1"$>

Examples

Ouput an ellipses if the excerpt is longer than the trimmed excerpt.

<$MTEntryExcerpt trim_to="320"$>
<mt:EntryExcerpt count_characters="1" setvar="excerpt-count">
<mt:Unless name="excerpt-count" lt="320">...</mt:Unless>
<a href="<mt:EntryPermalink>">Read the full article »</a>
This page was last updated on 2009-09-03, 09:59.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.