1 2 3 4 5 // Change WordPress excerpt length to 25 words function wpt_change_excerpt_length( $length ) { return 25; // change 25 to your choice } add_filter( 'excerpt_length', 'wpt_change_excerpt_length', 9999);