I have a wordpress site based on the Thematic framework which has a static Home page, a Blog page (posts) and a News page displaying a custom post type named 'news'. My attempt to highlight the current menu item is as follows:
.aside .current-custom-item a, .aside .current-menu-item a, .aside .current-menu-parent a, .aside .current-menu-ancestor a, .aside .current-post-ancestor a, .aside .current_page_item a, .aside .current_page_ancestor a, .aside .current_page_parent a { color:#00f; }
I created the News page as follows:
1) Copied template-page-blog.php from Thematic to my Child Theme folder and renamed to template-page-news.php.
2) Edited the comment at the top of the file to:
/** * Template Name: News * * This template allows you to display the latest news posts on any page of the site. * */
3) Edited the query in the file to:
$wp_query->query( array( 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => $paged, 'post_type' => array('news', 'attachments') ) );
This all works fine except when on the News page, the 'Blog' menu item is highlighted rather than the 'News' menu item!
It seems like what is missing is some way of 'telling' my news page template that it is not the main posts page but a custom post type page... This is my first WordPress and Thematic site so I could have missed something basic here!
Thanks in advance for any help. 8-)