You can use the default filter for the length of the_excerpt
// Changing excerpt length
function new_excerpt_length($length) {
return 40;
}
add_filter('excerpt_length', 'new_excerpt_length');
You can use the default filter for the length of the_excerpt
// Changing excerpt length
function new_excerpt_length($length) {
return 40;
}
add_filter('excerpt_length', 'new_excerpt_length');