By default, excerpt length is set to 55 words. To change excerpt length using excerpt_length filter, add the following code to functions.php file in your theme:

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


WordPress Codex : the_excerpt()

Similar Posts

Leave a Reply

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