Hi Michael,
Thanks for your reply.
<?php cat_is_ancestor_of(cat1, cat2); ?>
I don't think this is what I am looking for as, if I'm reading this right, you would need to declare all of the child categories in the function?
I am thinking that, maybe, I should have included more detail in my original question.
The site I am building is for a TV production company and contains a lot of video clips of their work. I have set up my categories and child categories as follows:
Directors
___Director Name 1
___Director Name 2
___Director Name 3
___etc.
Genres
___Comedy
___Drama
___Animation
___etc.
My problem is that I need to have a different template shown if the viewer is visiting a Director page than when viewing a Genre page. Obviously when I say 'page' I mean web page and not a WordPress 'Page'.
It would be easy (if not a little tedious) to set up category-x.php files for each of the categories but the list of directors is not finite and the client will want to add to it as they work with new directors.
Therefore it would be easier if I could just get WordPress to check to see if the current category being viewed is a child of either 'Directors' or 'Genres'.
Sorry for the long-winded post! Many thanks again for any help.
Cheers.