-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FSE: Can't add new templates as per template hierarchy #32861
Comments
I think this was fixed by #31971, which is not merged as yet. I encourage you to test again with that branch as I'm curious whether it does fix this. |
Hi @carlomanf I have cloned your repo, checkout to I don't know what the issue could be. Let me know if I'm missing anything. Thanks. |
Thanks for testing @chandrapatel. After reading again, I think I misunderstood what your issue is about. There are kind of two different issues here:
Am I correct that you're more concerned about number 2 than number 1? |
Hi @carlomanf Yes, that's correct. I'm also concerned about number 1 issue. |
This issue is still actual, tested with both WP No Template slug can be edited, existent or not, in reply to @carlomanf, and neither if associated with the theme in use or not. The same is true for the "Templates Parts" Curious about this, I also checked the "Navigation Menu" Please be aware that to be sure the change happened or failed, you need to reload the page of the template you're trying to edit, beacuse after the Update action it seems the new assigned slug stuck. Related tickets that dealt with this slug:
Testing Enviroment |
Related issue just opened :) #37407 |
Hi! The Appearance -> Templates screen does not exist anymore. The template list in the Site Editor has an option for renaming the template. It does not separate "name" and "slug", it only has one option, and the option is only for user created templates: @chandrapatel Are you able to update the issue to match the current UI and template editing experience, and clarify the uses cases for needing to update template slugs? Is it still needed or is the existing option enough? |
@carolinan I have updated issue title and description. Previously I thought it might be possible if user can update template slug to add new templates as per template hierarchy but now there is no option to add/update template slugs. Only can rename template name. Original issue was to have options to add new templates as template hierarchy so that user can have different template for different content types like different archive template for custom post types or template for single category term, etc. |
Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks. |
@chandrapatel do you think we can close this one in favor of #37407? The only template type that is missing right now is the |
@ntsekouras Yes, we can close this issue. I'm closing it. Thanks. |
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 forFront Page
,Page
,Author
,Category
,Date
,Tag
,Single item: Post
andCustom template
.I have tried using
Custom template
but it only applied to any singlepost
orpage
.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
Appearance -> Editor
.WordPress Logo
to open left sidebar.Templates
to see list of templates.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
Device information
The text was updated successfully, but these errors were encountered: