Post formats: Archive templates have no description and use the slug instead of a readable name #65319
Open
2 tasks done
Labels
[Package] DataViews
/packages/dataviews
[Type] Bug
An existing feature does not function as intended
Description
When a block theme includes the HTML file for a post format archive, the Site Editor and Data Views shows the template without a description and without a human-readable name. Instead it uses the slug, name from the HTML file.
It is as if the Data Views do not recognise that the template is part of the template hierachy.
Step-by-step reproduction instructions
First, you need a block theme, and you need to enable post format support on the active theme.
Example:
Next, add a post format archive template inside the
templates
folder.The content of the file does not matter for this test. I have used the link post format as example:
templates/taxonomy-post_format-post-format-link.html
Optionally, create one or more posts with the link post format assigned.
Go to Appearance > Editor > Templates.
Note that the link archive is available, but uses the whole slug as the template name.
Screenshots, screen recording, code snippet
Environment info
WordPress 6.6.2, with and without Gutenberg trunk.
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: