Excerpt enhancement request
|Reported by:||Looimaster||Owned by:|
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()?
- Twenty Thirteen uses the_content() but this prints entire content unless <!--more--> exists and it completely ignores Excerpt field from [Posts > Add New > Excerpt].
- 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:
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.