Switch template depending on taxonomy value

Posted in: Newspaper
Post count: 34

Hi,

I’ve created a custom post type called ‘People’ and a taxonomy called ‘Gender’ with the values ‘Men’ and ‘Women’. Additionally I’ve designed a CPT single template, which is used when ‘People’ posts are displayed.

Now, I’ve designed another CPT single template for ‘People’, which should only be displayed if taxonomy ‘Gender’ = ‘Women’. The first template should only be displayed if taxonomy ‘Gender’ = ‘Men’.

Is this possible and how can I realize it?

Thanks and regards, Bernd

Post count: 21065

Hello!

Unfortunately, no. Sorry!

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.