Different Template For Each Taxonomies (Category) For Custom Posts

Posted in: Newspaper
Post count: 58

Hi,

I created a custom post type and have category as taxonomies. And then I created different categories but I was unable to assign different templates for each new category for the custom post type. Can you please help me to achieve this?

Thank You.

Post count: 27744

Hello,

Please go to the Theme Panel -> Categories, and there you will find your categories and you can assign a template https://i.imgur.com/AQB2LB0.png

Thank you!

Post count: 58

Hi Anamaria,

Do this applicable to posts only or we can assign different post templates for custom post taxonomies (categories of custom post types) as well?

Thank You.

Post count: 21065

Hello!

You can choose different templates for posts too: https://prnt.sc/iG8zb6ezaYhE

Thank you!

Post count: 58

Hi,

I was asking for this for Custom Post Type (CPT). For like, I created a custom post type, “Music”, with “Music Categories” as a taxonomy. And inside “Music Categories”, I created different taxonomy called, “Melody”, and “Rock”. Now I want to select different post designs for these 2 categories, “Melody”, and “Rock”.

Can you please guide me on this? Note: I didn’t mean a default post/blog post for this.

Thank You.

Post count: 21065

Hello!

The CPTs are not simple categories, and the taxonomies are not simple posts.
Unfortunately, we do not have a setting to choose an individual template. You can only have a global template. They are working as simple cloud page templates.

Thank you!

Post count: 58

Hi,

Are there any other ways to achieve this, different templates for each individual category of Custom Post Type?

Thank You.

Post count: 58

In addition to the above, how can we create a conditional template design for the Custom Post Type? Like, if one category contains an “X” custom field, display it, and hide it for other categories and vice versa.

Post count: 21065

Hello!

Unfortunately, no.

Thank you for your understanding!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.