Change the WordPress Excerpt limit

First thing to do is look in your theme’s functions file and look for something that looks like the following code:

function excerpt_length($length) {
return 35;
}

Change the return value to edit how many words will show in the excerpt.

If you do not see something shown above in your theme’s functions file add the following lines of code:

add_filter('excerpt_length', 'my_excerpt_length');

function my_excerpt_length($length) {
return 35;
}

Change the return value to edit how many words will show in the excerpt.

Leave a Reply