Q. Got a theme that needs two different excerpt lengths?

A. Found here: set the standard, longer excerpt as normal in the functions.php file and the override locally using this code:

<?php echo substr( get_the_excerpt(), 0, strrpos( substr( get_the_excerpt(), 0, 75), ' ' ) ); ?>

Last Updated on