Hello, I have created a custom taxonomy by the slug 'shop-type'.
I would like to use a condition on this taxonomy's archive page, in order to show different html content, depending on which category I'm currently viewing.
So, different content for 'shop-type-> bakery ' and different contebt for 'shop-type-> supermarket'
Thank you!
Hello. Thank you for contacting the Toolset support.
I would like to know where exactly you want to add the conditional display. Do you want to add condition within the archive's loop or outside the archive loop?
We just released new set of plugin update for Toolset plugins. Could you please update ALL Toolset plugins to it's latest release version. You can download the latest plugin from your account's page:
- https://toolset.com/account/downloads/
What if you try to add conditional statement, for example outside your view's loop:
[wpv-conditional if="( '[wpv-taxonomy-slug]' eq 'bakery ' )"]
You are in the bakery.
[/wpv-conditional]'
[wpv-conditional if="( '[wpv-taxonomy-slug]' eq 'supermarket' )"]
You are in the supermarket.
[/wpv-conditional]