You want the function in_category()
, not in_cat()
. And to check multiple categories you need to pass an array as a single argument (as opposed to multiple arguments):
if ( is_single() && in_category( array( 3, 5, 6 ) ) )
You want the function in_category()
, not in_cat()
. And to check multiple categories you need to pass an array as a single argument (as opposed to multiple arguments):
if ( is_single() && in_category( array( 3, 5, 6 ) ) )