Skip to content

Instantly share code, notes, and snippets.

@thadallender
Created January 21, 2014 03:37
Show Gist options
  • Save thadallender/8534076 to your computer and use it in GitHub Desktop.
Save thadallender/8534076 to your computer and use it in GitHub Desktop.
Change WordPress excerpt length. Add this to your active theme's functions.php file. Change 36 to your desire.
function my_excerpt_length( $length ) {
return 36;
}
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