Child Category Conditional Question
I don’t know what is_category_or_sub() and that function is the critical piece of code. Without it, the question of why your code doesn’t work isn’t answerable but there is code in the Codex that seems to do what you need: /** * Tests if any of a post’s assigned categories are descendants of target categories … Read more