Created
September 4, 2013 14:19
-
-
Save scottnix/6437600 to your computer and use it in GitHub Desktop.
Thematic/WordPress change default 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 the excerpt length, default WP value is 55 words | |
function childtheme_excerpt_length($length) { | |
return 5; // 5 words | |
} | |
add_filter('excerpt_length', 'childtheme_excerpt_length'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment