The custom navigation menu uses the global $wp_query
object to figure out what page is the current page and should get that class. query_posts()
replaces this $wp_query
object, so the navigation menu can't apply the correct classes.
It's notWhy do you use a great solution, but if I wereseparate template for this page? If you I would either duplicatespecify no template, it should use the content ofhome template (indexhome.php
inor blogindex.php
and do) with the query_posts()
aftercorrect posts in the menu is displayedloop, or add it in index.php
inside aand you should not need your own if (is_homequery_posts())
block.