Advertisements

Use wp_trim_words to limit words in WordPress

Using wp_trim_words allows us to limit the title and excerpt, and anything else really, to a particular number of words. How practical a name. You can define the number of words to limit them to, and also define what you’d like the “more” text to be.

via Use wp_trim_words to limit words in WordPress.

Advertisements

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: