1. Home
  2. Wordpress
  3. 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.

#wordpress#php#tag#taxonomy
has_term( 'some-tag', 'my-taxonomy' );
copy
Full Wordpress cheatsheet