My posts are in two categories - one that defines their type eg. article
or review
and the other defines the topic - tablets
,smartphones
,smartwatches
, etc.
How can I get the current post's category ID for its topic - i.e. whether it's a tablet
, smartphone
or smartwatch
.
If I do get_the_category( $post->ID );
I suppose it'll return all categories the post is in, but how do I filter out the article
or review
categories out?
Example: Post ABC
is in categories article
with ID=1
and tablets
with ID=10
how can I extract on the tablets
ID=10
category without the article
one?