Created
January 10, 2017 16:20
-
-
Save harishankerr/7e002551cd44b755994a017cb50a4682 to your computer and use it in GitHub Desktop.
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
//Code to increase the excerpt length in WordPress. | |
function custom_excerpt_length( $length ) { | |
return 100; // This is the number of words. | |
} | |
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