Tech on Tour header image 2

Wordpress get_excerpt - show more words

January 3rd, 2008 by Alex Costa · 2 Comments


the get_excerpt function on Wordpress shows the first 55 words of your post, striped out of any special formatting eg: links, bold, etc.  I wanted to change it for a blog I was developing so I traced it back to the function wp_trim_excerpt in the file \wp-includes\formatting.php. In this file you can change the value from 55 to , in my case 100. Just change the line 786 which should look like this  $excerpt_length = 55;

Please remember that this will change the default value for all you excerpts.

Tags: Programming · Web Design · quick & easy tips

2 responses so far ↓

  • 1 etestcids // Oct 21, 2008 at 3:16 am

    Hi,
    I am, John
    good overall content
    my site:

    http://pX1qGcT4u.spaces.live.com/

  • 2 RaiulBaztepo // Mar 29, 2009 at 12:14 am

    Hello!
    Very Interesting post! Thank you for such interesting resource!
    PS: Sorry for my bad english, I’v just started to learn this language ;)
    See you!
    Your, Raiul Baztepo

Leave a Comment