cat_is_ancestor_of
-
if(is_category(’11’) || cat_is_ancestor_of(’11’, $catid))
With the above statement, I am trying to display a certain layout for the ’11’ category and all of its child categories. When I am viewing the ’11’ category, it displays the code within the if statement. However, when viewing any child of ’11’ – nothing is displayed.
What am I doing wrong?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘cat_is_ancestor_of’ is closed to new replies.