Easily Change the Length of the Default WordPress Excerpt
The default WordPress excerpt is 55 words long. By adding this quick bit to your functions.php file you can change the length to better suit your theme:
function new_excerpt_length($length) {
return 42;
}
add_filter('excerpt_length', 'new_excerpt_length');
FREE EBOOK
Your step-by-step roadmap to a profitable web dev business. From landing more clients to scaling like crazy.
FREE EBOOK
Plan, build, and launch your next WP site without a hitch. Our checklist makes the process easy and repeatable.
Source: WordPress Codex