if has custom taxonomy code example Example: if taxonomy term is if( has_term( 'jazz', 'genre' ) ) { // do something }