-
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
Missing Template selection in editor on Custom Post Type edit page, after update to 5.8-RC3 #33427
Comments
Hello, after further investigation I found that templates selection is missing in wp5.8 if my custom post type is registered with Is it really wanted behavior in WP 5.8 ? To make sure it has nothing to do with my other custom codes, I've tested it with TwentytwentyOne theme, with following code in functions.php
Thanks for your help. |
Hello, @ihdk We tested this issue during a triage session today. While we were able to reproduce the issue, it looks like to be the expected behavior. If you can't publicly access the post type, there's no need for the front-end template. Setting @Azragh Recently, "Templates" were moved into their panel and should be available at the very top of the sidebar. |
Description
Hello, I'm using Custom Post Type with custom Templates.
Available templates are available on this custom post edit page with WP 5.7.2.
After update to WP 5.8-RC3 I can see that Templates selection was moved from Page Attributes tab to Template tab in editor screen while I am editing standard Page. But on my custom post type edit screen there is totally missing Template tab to select from available templates.
Custom Templates for my Custom Post Type are added using
theme_{$post_type}_templates
filter, exactly following instruction in https://make.wordpress.org/core/2016/11/03/post-type-templates-in-4-7/ what worked perfectly until update to WP 5.8Thanks for any response...
Step-by-step reproduction instructions
theme_{$post_type}_templates
filter with latest public WP versionExpected behaviour
After update to WP5.8 there would be Template selection on Custom Post Type edit page like it's still available on edit page of standard Page.
The text was updated successfully, but these errors were encountered: