Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Wordpress custom the_exerpt length
<?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