Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#22089 closed enhancement (wontfix)

Twenty Twelve: Allow excerpts, if present, on index pages

Reported by: kwight's profile kwight Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5
Component: Bundled Theme Keywords:
Focuses: Cc:

Description

It is possible for users to enter and save excerpts for posts, yet never see them because of the theme's sole use of the_content() for index pages (blog, archives). This is confusing at best, and frustrating at worst, for users wanting to take advantage of crafted excerpts to represent their posts.

By conditionally using the_excerpt() when an excerpt is present, users gain control, on a post-by-post basis, of their summaries. Simply using the <!--more--> tag is not sufficient as it only provides a cut-off point in the content, rather than allowing custom excerpts.

Attachments (1)

excerpt-if-present.diff (796 bytes) - added by kwight 12 years ago.

Download all attachments as: .zip

Change History (7)

#1 @helenyhou
12 years ago

  • Summary changed from Allow excerpts, if present, on index pages to Twenty Twelve: Allow excerpts, if present, on index pages

#2 @lancewillett
12 years ago

I vote to not change this behavior.

With Twenty Twelve we are continuing the same behavior used in two previous default themes, Twenty Ten and Twenty Eleven, which is to only show excerpts on the search results view (and also on archives in the case of Ten).

#3 @DrewAPicture
12 years ago

  • Keywords close added

-1 for this.

The manual excerpt is meant to override the generated one and should only be displayed when the_excerpt() is called in the template.

Edit: Didn't see the patch :/

Last edited 12 years ago by DrewAPicture (previous) (diff)

#4 follow-up: @kwight
12 years ago

I guess I just don't see it as expected, or even desired behaviour, particularly to any new user that hasn't been using the older default themes. It feels like we're hoping users will think it's the "short description for search results" section.

Hm, maybe what I really want is a filter for the Excerpt meta box description, so users know what they get when entering an excerpt. Of the five example uses in the Codex, Twenty Twelve only implements one (albeit the first one).

Thanks for considering.

#5 in reply to: ↑ 4 @SergeyBiryukov
12 years ago

Replying to kwight:

Hm, maybe what I really want is a filter for the Excerpt meta box description, so users know what they get when entering an excerpt.

'gettext' filter could be used for that:
http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext

#6 @lancewillett
12 years ago

  • Keywords has-patch close removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Closing as wontfix after discussing with other developers in #wordpress-dev today (log).

Note: See TracTickets for help on using tickets.