Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/** Customize the length of excerpts */
<?php
/** Customize the length of excerpts */
add_filter( 'excerpt_length', 'new_excerpt_length' );
function new_excerpt_length( $length ) {
return 30;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment