My Wordpress site uses a custom front page (home.php
). The blog page uses a template (blog.php
).
However when I visit the blog page the navigation bar does not highligt the current page. This is because the class .current-menu-item
(and the class .current_page_item
) are missing from the navigation li
. This class is correctly included when I visit all other pages that use the default page template.
Here is the template for the blog page:
<?php
/*
Template Name: Blog
*/
// Which page of the blog are we on?
$paged = get_query_var('paged');
query_posts('cat=-0&paged='.$paged);
// make posts print only the first part with a link to rest of the post.
global $more;
$more = 0;
//load index to show blog
load_template(TEMPLATEPATH . '/index.php');
?>
I've noticed that if I remove the call to query_posts
then the nav bar styling works correctly, but the page is left blank.
Any ideas?