I’m trying to display different content depending on the taxonomy that was been selected. For example I have a taxonomy named Type. Inside that taxonomy I have several different children, one is “Photography.” I’d like the single of a “Photography” to have a full width instead of it having a sidebar. You can do this in regular Posts by using “if in_category(‘photography’)” but I’ve spent the past couple hours trying to rig the_terms and the like to function as such.
Thanks in advance for the help.
-Pete
Try
Usage:
Hope this helps.
In WP 3.1, you have the handy has_term() function, found in wp-includes/category-template.php.