Hi Zoe, thanks for your reply. I have used wp_nav_menu in the past but found it quite limiting when trying to do a few bespoke things my designer likes to put in
The home page is a static page with an ID of 4, and the category also has an ID of 4. I’ve been doing some playing around and I’ve sussed it ??
Each nav item object contains an ‘object’ member which is either ‘page’ ‘post’ or ‘category’ – So my logic statement is now:
<?php if( ( ($item->object == 'page') && (is_page($item->object_id)) ) || ( ($item->object == 'category') && (is_category($item->object_id)) ) ) $cur = true; ?>
Thanks for your help!