How can I change the length of the post excerpts?

The excerpt in the post templates of the Toggle Post Filter, Dynamic Post Filter and Post List is either the excerpt that you created with the post or, if the post doesn’t have one, the beginning of the post content.

You can change the excerpt length manually with a line of code.

Add to the file functions.php of your child theme:

add_filter( 'excerpt_length', function() {return 20;});

Replace “20” by the required number of words.