WordPress Change the length of excerpts

function chet_tips_excerpt_length( $length ) {
return 30;
add_filter( 'excerpt_length', 'chet_tips_excerpt_length', 999 );

By default, length of the excerpts in WordPress is 55 words. Tweak the functions by adding the following commands to customize the length so it can fit the layout.

Leave a Reply

Your email address will not be published. Required fields are marked *