Better logic in Theme Builder Condition #36456
jonbrandtbil
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the Problem
All condition options added in Theme Builder are handled as OR conditions.
This means that if you have a taxonomy that is shared between one or more post types, the correct template will not be applied to the correct post.
The post type selection is ignored because the taxonomy condition is always true in the template that has the selected term in the taxonomy.
Propose a Solution
Add the same condition handling as for widgets. There you have the option to build AND or OR conditions.
Additional Context
If you have multiple post types that use, for example, a brand taxonomy to get the right design for each brand, you want to reuse the same taxonomy so as not to have to create a taxonomy for each post type with exactly the same values just to get the template engine to find the right conditions.
For those of us who have 15+ post types that share one or more taxonomies, we're starting to get a little frustrated with all the workarounds to get the right template on the right post. 😟
Agreement
All reactions