I am creating a view in Toolset and I want to use a conditional that says..
if this post (from current loop item) has a selected term in this taxonomy, display this text.... else, don't display any text.
I can sort of do this by doing the following...
if this post (from current loop item) has term A or term B or term C or term D selected, then display this text.... else, don't display any text.
This means I have to update the view every time a term changes or a term gets added. I develop the theme so if I can add a custom function to do that, it would not be a problem.
Here's the example code from my loop item.
[wpv-conditional if="( CONTAINS(#(division),'General Obstetrics and Gynecology') ) OR ( CONTAINS(#(division),'Gynecologic Oncology and Urogynecology') ) OR ( CONTAINS(#(division),'Maternal-Fetal Medicine') ) OR ( CONTAINS(#(division),'Reproductive Endocrinology and Infertility') ) OR ( CONTAINS(#(division),'Reproductive Research') )"]Division<br>[wpv-post-taxonomy type="division" format="name"]<br>[/wpv-conditional]
Here's what I would like to do.
[wpv-conditional if="( $(division) ne '' )"]Division<br>[wpv-post-taxonomy type="division" format="name"]<br>[/wpv-conditional]