Limit excerpt

<?php

function limit_words($string, $word_limit) {
	$words = explode(' ', $string);
	return implode(' ', array_slice($words, 0, $word_limit));
}

Usages

<?php echo limit_words(get_the_excerpt(), '41'); ?>

Leave a Reply