Easily Change the Length of the Default WordPress Excerpt

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');

Source: WordPress Codex

Free Video Why 100 is NOT a Perfect Google PageSpeed Score (*5 Min Watch) Learn how to use Google PageSpeed Insights to set realistic goals, improve site speed, and why aiming for a perfect 100 is the WRONG goal.