Created
January 21, 2014 03:37
-
-
Save thadallender/8534076 to your computer and use it in GitHub Desktop.
Change WordPress excerpt length. Add this to your active theme's functions.php file. Change 36 to your desire.
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
function my_excerpt_length( $length ) { | |
return 36; | |
} | |
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