Tell us what you are trying to do?
I watched the tutorial "Assigning Templates to Posts Conditionally in WordPress" . It is said that if I have two categories of shoes to sell, I can create two templates. But I don't know the product categories for “Trainers” and “Heels” are post type itself, or categories under a post type (say, Shoes Product)? Because I found that when I create the first template for one post type (say, Shoes Product), I can use any custom field contents of this post type. Everything is ok. However, if I create the second template, now I can't use the custom field of Shoes Product, although having assigned the usage to Shoes Product. Is it normal ? How do I design the second template for the same post type but under different category?
So it is the question: If I have two type of posts, they are quite similar ( maybe 80% the same custom fields will be used), how do I arrange their post type, custom field, and template?
My first thought and what I doing now is :
Because they are the similar posts , so I collect them to the same post type, creating a custom field set including every field I will use. And I make two templates, each one has its design and field used.
For example,
Post type : Shoes Product
Custom fields : Field group for Shoes Product ( including 10 field contents)
Taxonomies: Trainer , Heels
Template: Template for Trainer( maybe including 6 field contents from field group), Template for Heels( maybe 5 field contents but some of them are different to Trainer's)
But, If I have assigned the template for Trainer to post type "Shoes Product", I can't use the field group for Shoes Product again for any other template ......
So, how do I arrange my toolset structure? Just take this Shoes Product case for example ? Thank you!
Is there any documentation that you are following?
https://toolset.com/lesson-placement/lesson-placements-1621067-2019391/
Is there a similar example that we can see?
What is the link to your site?
hidden link