Shorten the Excerpt

If you think the Excerpt is too long, it’s easy to shorten to a chosen number of words.

Code Snippet:

<?php
function new_excerpt_length($length) {
	return 20;
}
add_filter('excerpt_length', 'new_excerpt_length');
?>

Posted in Posts