Hey there,
I have the following task:
1. We have a custom post type named Episodes (representing episodes of TV Shows) and a taxonomy named TV Shows for that custom post type
2. Each TV show has its own YouTube channel and Facebook page
Is it possible to use one custom post type template and based on the taxonomy of the custom post type display a specific YouTube channel to follow?
If not – is it possible to have a specific post template for each taxonomy (TV SHOW) that we have and if thats the way to go is it going to slow things down because we have about 40 TV Shows?
Hello,
You can use a single post template for each taxonomy: https://i.imgur.com/HYIH1pv.png. You can use a taxonomy to assign to each CPT and to be the YouTube channel and Facebook page and use CPT Taxonomies to show them
Thank you!
I am sorry I don’t understand the second part.
As far as I understand – it is possible to have post templates for each taxonomy from the first part of your answer.
What do you mean by “ You can use a taxonomy to assign to each CPT and to be the YouTube channel and Facebook page and use CPT Taxonomies to show them”? I should add an extra taxonomy to my Episodes that would be lets say “Youtube” and “Facebook” for example. How can I then display them as parts of the general Episode template?
I am sorry for not understanding your idea…
Hello,
I think I now understand what you want to achieve. In order to set a YouTube and Facebook channel for each post individually, you can use custom fields. This way, you set that field for each post with the desired value without having to modify the post templates https://forum.tagdiv.com/custom-fields-support/
Thank you!
Thats also not going to work well for me because we post 20 episodes per day and it is a matter of time until someone misses the button and forgets it. I am thinking of a way to make it automatic based on the taxonomy (I think you hinted that as an idea at first). Can I do it this way?
Hi,
Ok, then you need to duplicate the template for taxonomy and add them for each taxonomy as I said the first time. Check this topic: https://forum.tagdiv.com/topic/different-logo-in-categorypage/; The same steps are to duplicate any template.
Thank you!