Cut number of words WP
<?php $excerpt = get_the_excerpt(); $shortexcerpt = wp_trim_words( $excerpt, $num_words = 40, $more = '...' ); echo '<p>'.$shortexcerpt.'</p>'; ?>