Hi,
I'm trying to get my main menu tabs to hilight depending upon which page, category, post etc is displaying.
I've got it working fine picking up pages, and categories but it's the post level that is proving to be a bit tricky. When I use in_category(), the home tab gets hilighted also - it seems that in_category() is returning as TRUE for this page?
I've attached an exmaple of my code below:
<li <?php //About Us tab
if ( $post->post_parent == '2' || is_category(array(79,80)) || in_category(array(79,80)) ) {
?>class="current"<?php }?>><a href="/about/accountants-for-life/">About Us</a></li>
Also do i REALLY need the is_category condition - I tired it with just the in_category condition and it seemed to work OK except for the homepage issue.
I'd appreciate any help. Thanks.