Skip to content

Add dynamic templates to pages listΒ #50418

@SaxonF

Description

@SaxonF

What problem does this address?

Templates can often be a confusing concept to WordPress beginners or even experienced end users who haven't been exposed to site editing. A lot of this confusions stems from the idea that templates are smartly mapped to certain dynamic pages, and thus could be seen as pages themselves. Visit your site's homepage and you naturally think of it as just another page.

What is your proposed solution?

This work aims to reduce some of that confusion by surfacing more general templates in the pages list. This is a follow up to #44461

pages

Acceptance

  • If 404 template exists, include in the list using layout icon
  • If search template exists, include in the list using layout icon

Homepage displays latest posts:

  • Include a "Homepage" item using the home icon
  • The homepage item should open the template details panel for front-page OR home OR index in that order

Homepage displays a static page:

  • The page that is marked as homepage should use the home icon with "front page" subtext
  • The page that is marked as blog should use the loop icon with "posts page" subtext
  • The homepage item should open the page details panel
  • The blog page item should open either home OR index template details panel in that order

Metadata

Metadata

Labels

[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

Status

βœ… Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions