Created
November 1, 2012 15:55
-
-
Save WebEndevSnippets/3994526 to your computer and use it in GitHub Desktop.
WordPress: Modify Length of Post Excerpts
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
/** Modify the length of post excerpts */ | |
add_filter( 'excerpt_length', 'we_custom_excerpt_length' ); | |
function we_custom_excerpt_length($length) { | |
return 50; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment