wordpress snippets

Change Excerpt Length in WordPress

Last modified: August 27, 2018

function scanwp_change_excerpt_length($length) {
return 30;
}
add_filter('excerpt_length', 'scanwp_change_excerpt_length');

Add to functions.php and change the number to the length you want.

Save 4 Later
Email these links to yourself