Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#33401 closed enhancement (wontfix)

Add excerpt option to a page

Reported by: paaljoachim's profile paaljoachim Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: reporter-feedback
Focuses: administration Cc:

Description

Adding an excerpt option to the pages screen in addition to the post screen?

add_post_type_support( 'page', 'excerpt' );

Have a great day!

Change History (8)

#1 @DrewAPicture
9 years ago

  • Keywords reporter-feedback added

@paaljoachim: What would be the primary use-case of adding excerpt support to pages? I think the major feeling is that excerpt are given to posts because posts are more often listen in archive-like views, whereas pages more often serve in a standalone capacity.

#2 @mor10
9 years ago

Use case: Page Indexes

As drop-down menus are becoming a non-solution due to touch screens and smaller devices, complex page navigation has to be solved in other ways. One common solution is to create page indexes where a top-level page (About) leads to the main page followed by links (typically with featured images and an excerpt) to sub-pages. This is not a new design choice, but it is becoming more prevalent, and with Page Excerpts it would be a lot easier.

The same functionality could be used to display related pages or page previews in widgetized areas etc.

#3 @mor10
9 years ago

Use case: Improved Social Media Sharing

Many social media plugins etc default to using the Excerpt if no custom SEO/Social Media message is entered. This is currently not possible with pages, but would be if Excerpts were present.

#4 @mor10
9 years ago

Use case: Conditional Page Content Display

For certain types of designs, in particular "single-page" layouts, it is common to pull the contents of multiple pages into one landing page while at the same time allowing each of the pages to live on their own. Excerpts would make it possible to display a custom truncated message on these landing pages while a longer message is displayed on the individual pages.

#5 @helen
9 years ago

All use cases seem theme and/or plugin-enabled, in which case it can be added in by the theme/plugin that needs it. Is this really something that needs to be there by default? Or will users fill it out and then wonder where it's supposed to show up?

#6 @eliorivero
9 years ago

Personally, I don't think this is needed in core. Pages and posts serve different purposes, they shouldn't become more similar (and actually in WP 4.3 with comments disabled for new pages they became a little bit more different).

In cases where a plugin uses the excerpt for social media description, the plugin itself can provide the necessary support for this. Same applies for page indexes and conditional page display: it's a presentational issue so it's the theme the one that should provide the proper support for this.

Excerpt for pages can be easily added with this snippet from a plugin or a theme
http://codex.wordpress.org/Function_Reference/add_post_type_support#Example

#7 @wonderboymusic
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

This is still plugin material. The ability to add it on an ad hoc basis per install exists

This ticket was mentioned in Slack in #themereview by poena. View the logs.


7 years ago

Note: See TracTickets for help on using tickets.