is child of specific category
-
What I am trying to do –
<?php if (is_category('categoryname') || in_category('1') || is_category('child_of=1')) ?> ~ do this ~ else ~ do something else ~
what I am stuck at is finding out whether the current category is the child/grandchild of a particular category.
Any pointers?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘is child of specific category’ is closed to new replies.