Im using the folowing script in my Sidebar to show specific menu depending on the categories :
<?php
if (is_category(‘recipe’)){ include (TEMPLATEPATH . ‘/sidebar-recipe.php’); }
else { include (TEMPLATEPATH . ‘/sidebar-main.php’); }
?>
It works great. My only problem is that I would like to include all the sub-categories of the categories “recipe”, so that everything under it (child) will have the same sidebar. Something like : if (is_category_and_child …
Otherwise if I cant do that, I would like to be able to include more than one categories in the tag, but I cant find the right syntax. Something like : if (is_category(‘recipe’, ‘deserts’, ‘soup’, ‘lamb’, ‘etc…’ ))
Thanks a lot.