if category or child of category
-
I have been searching the forums for an answer to this one as I’m sure it will be here but have had no luck.
I have a function that is pulling in a different custom menu on a category index depending on the category index you are viewing.
if (is_category('Nights Out')) wp_nav_menu(array('theme_location' => 'nightsout','fallback_cb'=> ''));
What I need is to also pull in the menu on the child category indexes.
So if ‘Nights Out’ or child of ‘Nights Out’.
What code do I need to use to pull in the children?
Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘if category or child of category’ is closed to new replies.