I want to display a specific block of html when viewing an archive page based on on category.
I have a category "news (id 1)" with 5 children categories;
If I use (is_category ('1')) the html only appears when the news category is being browsed, but if I go to any of the children categories the html does not display;
I know I can use an array, is_category(array(1,'news-cat-1','news-cat-2')); but then I have to manually edit the code every time I add a child category to news.
Is there a way to make it so that when the user is viewing the news category or any of it's children the html display?
thanks in advance for any guidance..