bux23
11/25/2016 - 10:26 PM

Cut number of words WP

Cut number of words WP

<?php 

$excerpt = get_the_excerpt();
$shortexcerpt = wp_trim_words( $excerpt, $num_words = 40, $more = '...' ); 

echo '<p>'.$shortexcerpt.'</p>';

?>