Skip to main content
1 of 2
Anand
  • 227
  • 1
  • 7

please try below code:

if(has_tag( array( 'sharp', 'mild', 'extreme' ) ) && get_post_type()=="custom-post-type"){
}

the array value should be the term name which is stored in taxonomy.

you can directly pass the array in gas_tag() function

Anand
  • 227
  • 1
  • 7