Is Category child of a certain other Category
-
Hey all,
I’m trying to find out if a category ID that is selected from $wp_query->query_vars is a child of another Category, but not sure how. Could anybody help me out at all?
Here is what I am trying to achieve –
if($wp_query->query_vars['cat'] == {child of Category 51}){ $activeClass = 'services'; }
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Is Category child of a certain other Category’ is closed to new replies.