Skip to content

Instantly share code, notes, and snippets.

@jackfearing
Created January 31, 2023 00:13
Show Gist options
  • Save jackfearing/c855f82c9ac0a6c5137c87df732956f4 to your computer and use it in GitHub Desktop.
Save jackfearing/c855f82c9ac0a6c5137c87df732956f4 to your computer and use it in GitHub Desktop.
/*
Add to functions.php:
*/
// Defines the length of the_excerpt
function my_excerpt_length($text){
return 30;
}
add_filter('excerpt_length', 'my_excerpt_length');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment