Created
April 24, 2012 14:05
-
-
Save baczoni/2479916 to your computer and use it in GitHub Desktop.
Wordpress: Change excerpt length
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
//Change Excerpt Length -- Add to functions.php | |
function new_excerpt_length($length) { | |
return 35; //Change word count | |
} | |
add_filter('excerpt_length', 'new_excerpt_length'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment