Created
July 1, 2015 23:08
-
-
Save benweiser/2f53c23ce5a9befc3ccd to your computer and use it in GitHub Desktop.
This file contains hidden or 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', 'bw_excerpt_length' ); | |
| function bw_excerpt_length( $length ) { | |
| return 40; // pull first 50 words | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment