Check if post has a specific term

Hi,

How do i check if the current post has a specific term of a Custom taxonomy?
I tried a few, none works:
<If taxonomy=phase terms=phase-1>
<If taxonomy_term=phase-1>

Thanks for your help

Or how to check if there’s any term of a specific taxonomy set on the post?
I tried multiple things including:
<If taxonomy=phase>
<If taxonomy=phase exists>

Hi,

I finally found the following snippets which work.
Apparently, one must loop through the taxonomy terms AND restrict the loop to the current post.

Check if the current post has a specific term in a given taxonomy

<If loop taxonomy=phase terms=phase-1 post=current>

Check if the current post has any term in a given taxonomy

<If loop taxonomy=phase post=current>