Custom post type and pro page templates

I found some older topics about custom post types and page templates from pro theme.

screenshot_ 2024-02-22 um 22.57.25

Is it still standard that page templates can only be used for built-in WordPress pages?
Or is there now an option or a filter so that you can also have this for custom post types that are defined like pages?

Hello @Regnalf,

Thanks for writing to us.

You can use the template for the default WordPress pages.

Please note that page templates are only available for the pages and it is not available for the custom post type. You may create a custom layout using the layout builder for the custom post types.

Thanks

Is there a reason, why it is not possible to enable it for other post types?

Hi @Regnalf,

The page template is only available for the pages, not for the post types. You can create a layout using the Layout Builder as suggested by my colleague, or else you can create a Layout for Single post by following the Template Hierarchy in the following documentation.

Please remember that in the above case, you need to create the file and modify the Theme which is beyond the scope of Theme Support.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.