I know this is probably posted in here somewhere but I can't find it with search.
What include file defines the default excerpt word count? I think it's like 120 characters and after I upgraded I can't remember where I found it before.\
Much Thanks!
I know this is probably posted in here somewhere but I can't find it with search.
What include file defines the default excerpt word count? I think it's like 120 characters and after I upgraded I can't remember where I found it before.\
Much Thanks!
Never mind, I found it in functions.php
function wp_trim_excerpt($text) { // Fakes an excerpt if needed
if ( '' == $text ) {
$text = get_the_content('');
$text = apply_filters('the_content', $text);
$text = str_replace(']]>', ']]>', $text);
$text = strip_tags($text);
$excerpt_length = 95; // <----------------------- here it is
$words = explode(' ', $text, $excerpt_length + 1);
if (count($words) > $excerpt_length) {
array_pop($words);
array_push($words, '[...]');
$text = implode(' ', $words);
}
}
return $text;
}This topic has been closed to new replies.