Created
May 5, 2014 17:50
-
-
Save DWboutin/c53f3da70432bf169f0c to your computer and use it in GitHub Desktop.
Wordpress custom the_exerpt length
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
<?php | |
function custom_excerpt_length( $length ) { | |
return 30; | |
} | |
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