Skip to content
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

Ability to create templates for a single post type based on taxonomy #66586

Closed
stevencamilleri-g2m opened this issue Oct 30, 2024 · 2 comments
Closed
Labels
[Type] Enhancement A suggestion for improvement.

Comments

@stevencamilleri-g2m
Copy link

stevencamilleri-g2m commented Oct 30, 2024

What problem does this address?

Currently it is not possible to create a template for single posts of any post type based on taxonomy, therefore users are unable to automatically assign a different template for a group of posts that form part of specific taxonomy (i.e. A user cannot create a template for single posts with category blog while having another template for single posts with category events). The only way of possibly doing this, is by manually assigning a custom template to each post on an individual basis but that requires a lot of manual work in large scale websites.

What is your proposed solution?

Extend template functionality to allow assigning a custom template to a specific taxonomy within a post type. The ideal user flow would be something like this:

Users would be able to create a template for a specific category of a post type:

Image

After selecting category option above, users can select which specific category to assign the template to:

Image

@stevencamilleri-g2m stevencamilleri-g2m added the [Type] Enhancement A suggestion for improvement. label Oct 30, 2024
@jeherve
Copy link
Contributor

jeherve commented Jan 29, 2025

I believe this is a duplicate of #48264

@stevencamilleri-g2m
Copy link
Author

Closing as originally discussed in #48264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants