Text Manipulation Filters

FeedOtter uses the TWIG template language.

Truncate

For the description excerpt for each piece of content you can also add filters to truncate the text to a specific character count while also preserving the words or full sentences.

// Truncate to 200 characters of text(200), preserve words(true), add ellipses("...")
[[post.post_excerpt_text | truncate(200,true,"...")]]

//Truncate to 450 characters of text but preserve sentences
[[post.post_excerpt_text | truncate_sentence(450)]]

Last updated