has_term
This method lets you check if post is associated with a specific tag. First attribute expects the tag slug, the second taxonomy slug.
has_term( 'some-tag', 'my-taxonomy' );
copy
This method lets you check if post is associated with a specific tag. First attribute expects the tag slug, the second taxonomy slug.
has_term( 'some-tag', 'my-taxonomy' );
copy