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

WordPress Trac noreply at wordpress.org
Sun Jun 16 21:31:55 UTC 2013


#24588: Excerpt enhancement request
-------------------------+-----------------------------
 Reporter:  Looimaster   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 I originally posted this on WordPress StackExchange but I think that this
 should go to trac for consideration as well.

 I was wondering what should be used in index.php (post listing page):
 `the_excerpt()` or `the_content()`?

 1. Twenty Thirteen uses `the_content()` but this prints entire content
 unless `<!--more-->` exists and it completely ignores Excerpt field from
 [Posts > Add New > Excerpt].
 2. So, I used `the_excerpt()` instead but this doesn't react to `<!--
 more-->` tag at all and it just grabs first 55 words or uses manual
 Excerpt and doesn't produce "Read more..." link.

 What I think is the most expected behavior is this:

 - print 55 words
 - but react to `<--more-->`
 - and if manual excerpt is specified, use this instead (most people don't
 want the beginning of their post to be their excerpt so this is of crucial
 importance)
 - produce optional "Read more..." link

 I know what you say here:
 - http://codex.wordpress.org/Function_Reference/the_excerpt
 - http://codex.wordpress.org/Excerpt
 - http://www.rarst.net/script/wordpress-excerpt-teaser/

 But what I described above looks like the most intuitive to me for post
 listing pages. The excerpt should be a single, configurable function that
 is suitable for both BLOG and ARCHIVES. And `the_content()` can stay for
 SINGLE.

 Currently neither `the_content()` nor `the_excerpt()` works for BLOG and
 requires filters.

 `the_content()` would do the job right but I think that most theme users
 aren't familiar with `<--more-->` tag and they rather expect that themes
 will create proper excerpts for post listing pages rather than displaying
 full post content (and after all `the_content()` ignored manual excerpt so
 it's a big drawback). Currently this can be achieved only with custom
 filters.

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


More information about the wp-trac mailing list