Have widget appear in child category
-
I’m attempting to use the code suggested on the “other notes” page of the plugin in order to display a widget on all descendants of a category.
Here’s the code:
is_category() && in_array($cat, get_term_children( 5, ‘category’))To be clear, here’s the category structure:
Cat 1
Sub A
Sub BI’m trying to get a widget to appear on Sub A and Sub B by specifying the parent category ID in the code above. I have not yet met with success as the widget is not showing up on Sub A and Sub B. What am I missing?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Have widget appear in child category’ is closed to new replies.