Created
November 1, 2017 17:49
-
-
Save mbrughi/88264259625c8a0aa36b0eeaa7c08a9e to your computer and use it in GitHub Desktop.
Wordpress: change excerpt lenght.
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
function my_excerpt_length( $length ) { | |
$length = '35'; // change the length in words you want | |
return $length; | |
} | |
add_filter( 'excerpt_length', 'my_excerpt_length' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment