[wp-trac] [WordPress Trac] #7778: Excerpt length enhancement

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 22 15:46:36 GMT 2008


#7778: Excerpt length enhancement
-------------------------+--------------------------------------------------
 Reporter:  dougal       |       Owner:  anonymous                                
     Type:  enhancement  |      Status:  new                                      
 Priority:  normal       |   Milestone:  2.7                                      
Component:  General      |     Version:                                           
 Severity:  normal       |    Keywords:  excerpts, wp_trim_excerpt, excerpt_length
-------------------------+--------------------------------------------------
 I had a client who wanted a different excerpt length than the default (55
 words). I quickly realized that the only way to do it currently is to copy
 the existing wp_trim_excerpt() function, remove the default filter, and
 add your custom filter.

 This would be made much simpler by simply applying a filter on the
 $excerpt_length variable. Diff attached.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7778>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list