custom taxonomy - if is in custom category show this
'float-components' is the slug of the product category, 'products' is the name of the taxonomy - which in this case was added in the functions.php
<?php if (has_term('float-components', 'products')) { ?>
put content here
<?php } ?>
/*
* custom taxonomies - add this to functions.php
*/
function build_taxonomies() {
register_taxonomy(
'products', 'product', array(
'hierarchical' => true,
'label' => 'product category',
'query_var' => true,
'rewrite' => true
)
);
}