Reply To: Length of WordPress Excerpt

#2420
Ron
Keymaster

You can add this code in functions.php

function ast_excerpt_length( $length ) {
   return 120;
}
add_filter( 'excerpt_length', 'ast_excerpt_length' );

By default WordPress outputs 55 words for excerpts. The code above increases it to 120 words. You can change the number as you like. The box should expand automatically.