Change excerpt length in WP by eckert
The default excerpt length in Wordpress is 55 words.
If you want to change it, go into “wp-includes”, “formatting.php” and scroll down to line 1812 (in versions prior to 2.7, it was line 853). If you are unable to find it, just do a find on the page for “55″ and you should come across it.
Change the “55″ to however many words you’d like it to be.
October 7th, 2008 at 7:43 am
Oh my goodness. I’ve been looking for that forever. How did you find that?
February 7th, 2009 at 7:25 pm
Thank you, this saved me so much time! Much appreciated
April 30th, 2009 at 10:38 am
I created a plugin for the WordPress backend to make it easier to change the length of the excerpt - without having to edit any core WordPress files.
http://wordpress.org/extend/plugins/excerpt-length/
The downside is that it only works in WordPress 2.7 and above.
May 10th, 2009 at 12:59 pm
thanks a lot, just solved a problem for a client :)
March 24th, 2010 at 5:46 am
it is so simple and works!
many tutorials on google like the following links doesn’t work.
http://www.google.com/search?aq=f&sourceid=chrome&ie=UTF-8&q=change+wordpress+lenght+default+excerpt
many thanks mister.
May 13th, 2010 at 12:56 pm
Or… you could just use filters :)
http://codex.wordpress.org/Template_Tags/the_excerpt