[WordPress] How to branch with custom post taxonomy term

Code

<?php if (is_object_in_term($post->ID, '[taxonomy]','[term]')){ ?>

<?php } else { ?>

<?php } ?>

Related article

%d bloggers like this: