By default the_excerpt length is 55 words. Sometimes I want to give my readers a longer excerpt length, depending on font-size and other element sizes, you could make the little teaser somewhat longer.
The below code creates overwrite the_excerpt and will return as many words as you desire.
[php]function new_excerpt_length($length) {
return 100;
}
add_filter(‘excerpt_length’, ‘new_excerpt_length’);[/php]
Change the “100” to as much or as little as you want!
Leave a Reply