Created
February 18, 2015 10:31
-
-
Save DigitalEssence/02091ec16309117715ef to your computer and use it in GitHub Desktop.
Reduce the Latest News Widget excerpt to X words
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
/* Reduce the Latest News Widget excerpt to X words */ | |
function custom_excerpt_length( $length ) { | |
return X; | |
} | |
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment