You can use is_object_in_term()
. Despite name it can also check for taxonomy match if terms are omitted.
is_object_in_term( get_the_ID(), 'category' );
You can use is_object_in_term()
. Despite name it can also check for taxonomy match if terms are omitted.
is_object_in_term( get_the_ID(), 'category' );