WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.49k stars 4.18k forks source link

Creating templates for Post Format archives in the Site Editor #66664

Open carolinan opened 1 day ago

carolinan commented 1 day ago

What problem does this address?

It should be possible to create templates for the post format archives in the Site Editor.

Today, if your theme supports post formats, and you go to Appearance > Editor > Templates > Add New Template, there is no option for creating new post format templates.

What is your proposed solution?

Post formats is a special case since it is not a taxonomy registered the same way as a category or tag.

If I would mock up the creation flow, I would picture that when you click on "Add New Template", the modal would include a button for Post Format Archives: The template creation modal with options to choose which template type to create

Next when you activate this button, you would not see the options to select "For all items" and "For a specific Item". Instead you would be able to select and click a button representing each of the supported formats. With supported formats, I mean the formats that the active theme has registered support for, that does not already have a template. A basic mockup for selecting the format in the template creation modal

Each format may be represented with a short description and icon too, because the mockup looks a little empty. But I would personally prefer this over a list of plain links with the format names.