Actually, I'm using a function I found somewhere. It lets me utilize that code for multiple areas of the site so I can limit the words per each area
This is the function
insert: <?php echo excerpt(50); ?>
<?php
function excerpt($limit) {
$excerpt = explode(' ', get_the_excerpt(), $limit);
if (count($excerpt)>=$limit) {
array_pop($excerpt);
$excerpt = implode(" ",$excerpt).'...';
} else {
$excerpt = implode(" ",$excerpt);
}
$excerpt = preg_replace('<code>\[[^\]]*\]</code>','',$excerpt);
return $excerpt;
}
function content($limit) {
$content = explode(' ', get_the_content(), $limit);
if (count($content)>=$limit) {
array_pop($content);
$content = implode(" ",$content).'...';
} else {
$content = implode(" ",$content);
}
$content = preg_replace('/\[.+\]/','', $content);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
return $content;
}
?>
I would use the function to the link you posted but it only lets me control one excerpt and not multiple. I have areas of my site where I want more content, words in this case, than other areas - if you understand what I'm saying.