Created
January 31, 2023 00:13
-
-
Save jackfearing/c855f82c9ac0a6c5137c87df732956f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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