Skip to main content
added 4 characters in body
Source Link
Pieter Goosen
  • 55.4k
  • 23
  • 115
  • 209

pleasePlease try below code:

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

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

youYou can directly pass the array in gas_tag()has_tag() function

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

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 has_tag() function

Source Link
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