I've been messing with my theme to make a dynamic menu that suits my needs and it works quite well, I just have one issue left to solve. My menu highlights the section that you are currently in and one of those menu options is a category so I've used the following code:
<?php if (is_category('5') || in_category('5')) echo('class="current" '); ?>
this picks up the category page and any post in that category. I also have the same sort of thing for my home page as follows:
<?php if (is_home()) echo('class="current" '); ?>
the problem occurs if the latest post is in category 5, because then the home page seems to also be classed as category 5. This results in both the home and cat5 menu items being shown in class="current". Is there anyway of adding a 'but not home' to the if conditional in the cat5 code above?