I had quite a few question on how to change the excerpt limit in wordpress as by default the limit is set to 55 words and if you make the change in the core file it will get over written when you update.

The easy way is to add filter in functions.php file of your theme. If you using default theme then is best to create a child theme and add the filter in child theme functions.php.

The first filter will let you change  the number of words displayed by the function the_excerpt(), and yes, you can have more than 55 words.

The second filter allows you to change the trailing [...] that appears at the end of your excerpt.

This are filters you add

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

You can change number 30 to what ever number you want to use.

function new_excerpt_more($more) {
	return '[.....]';
}
add_filter('excerpt_more', 'new_excerpt_more');
Avatar of Govindji Patel

About

I am Author/Publisher WordPress Coach and Consultant who enjoys writing tutorials and helping wordpress users build better WordPress website/blog.

Related Posts

blog comments powered by Disqus
Premium wordpress theme
Skype Status
Need Help with Wordpress Chat with me - Govindji Patel: My status is Online
» Get Skype, call free! If Offline please leave Message
Become A Fan
Premium wordpress theme
Free Report

WordPress Optimization Secrets

Get Your Blog To Rank Higher

Register and Download Free Report

Twenty Eleven Child Theme

Upgrade and get set of 35 videos on

how to create and customize child theme

Buy Me Coffee
Donation



Other Amount:



I appreciate a donation if you find my tutorials helpfull :



Your privacy will never be compromised or shared.
Congratulations

Thank you for Subscribing Please check your email for a confirmation email