Good afternoon,
Currently I am using this code for my menu:
<li<?php if ( is_home() ) { echo ' class="current_page_item"'; } ?>><a href="<?php echo get_option('home'); ?>"><span>Home</span></a></li>
<li<?php if ( is_page('about') || is_page('94') || is_page('83') || is_page('79') || is_page('73') || is_page('3339') || is_page('77') || is_page('20228') || is_page('20232') || is_page('75') || is_page('contact')) { echo ' class="current_page_item"'; } ?>><a href="http://www.followtheboat.com/about">About</a></li>
<li<?php if ( is_page('places-2')) { echo ' class="current_page_item"'; } ?>><a href="http://www.followtheboat.com/places-2">Places</a></li>
<li<?php if ( is_page('photography') || in_category('447')) { echo ' class="current_page_item"'; } ?>><a href="http://www.followtheboat.com/photography">Photography</a></li>
<li<?php if ( is_page('ftb-podcasts') || in_category('601')) { echo ' class="current_page_item"'; } ?>><a href="http://www.followtheboat.com/ftb-podcasts">Podcasts</a></li>
I realise that the About item could probably be an array but that's not my issue. My problem is this:
When I create a new blog entry in the category 'podcast', the homepage highlights both the menu item 'Home' and menu item 'Podcast'. When on the homepage I don't want it to highlight 'Podcast'. Could anyone tell me what I am doing wrong? Shouldn't the is_home() part prevent any other menu item from being highlighted or do I have to actually declare what is_home is?
Thanks in advance.