[wp-trac] [WordPress Trac] #24588: Excerpt enhancement request

WordPress Trac noreply at wordpress.org
Sun Jun 16 21:49:27 UTC 2013


#24588: Excerpt enhancement request
-------------------------+------------------------------
 Reporter:  Looimaster   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by Looimaster):

 Current excerpt function:

 {{{
 the_excerpt();
 }}}

 Improved excerpt function:

 {{{
 the_excerpt( $word_count = 0, $more = true, $manual_excerpt = true );
 }}}

 - 0 = full post content, 1 or more = number of words to cut after
 - more = should it parse `<!--more-->` tag? Note: this can be also
 responsible for choosing ellipsis and/or "Read more..." text like it does
 it now in `the_content()`
 - manual_excerpt = should be set to `false` for backwards compatibility
 but the excepted would be `true`

 (actually, with such configurability you can even merge `the_excerpt()`
 and `the_content()`)

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24588#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list