Description
I was trying to add archive page template for custom post type archive-{post_type}.html from Site Editor but there is no option. Add new template option only for Front Page, Page, Author, Category, Date, Tag, Single item: Post and Custom template.
I have tried using Custom template but it only applied to any single post or page.
Another example is that I can add new template for Category which applies to all category terms but I can't add new template for specific term using slug (category-$slug.html) or ID (category-$id.html) as per the template hierarchy.
I can add templates as per hierarchy in block theme and it's working, and I can edit in Site Editor.
I don't know if there is planning to add more new template options as per template hierarchy. I believe more template options will help user to add new templates for specific content type.
Step-by-step reproduction instructions
- Go to
Appearance -> Editor.
- Click on
WordPress Logo to open left sidebar.
- Click on
Templates to see list of templates.
- Click on
Add New button which shows list of template types.
Expected behaviour
User able to add new templates as per template hierarchy.
Actual behaviour
User unable to add new templates as per template hierarchy.
Screenshots or screen recording (optional)
WordPress information
- WordPress version: 6.0.1
- Gutenberg version: 13.7.2
- Are all plugins except Gutenberg deactivated? Yes
- Are you using a default theme (e.g. Twenty Twenty-Two)? Yes
Device information
- Device: Desktop
- Operating system: macOS
- Browser: Microsoft Edge 103 (Chromium)