I scratched my head over this, so in advance for any help in advance. Very much appreciated.
I have a menu in WP 3.0.1 that I call in header.php using:
wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) );
It is displayed perfectly on each page separately from the search results. The search.php file starts with the standard one get_header();, so should it be code wp_nav_menucorrectly? But nothing is wrapped conditional or not.
The HTML output should look like this:
<div class="menu-header">
<ul id="menu-main-menu" class="menu">
<li class="menu-item">
<a>Link 1</a>
</li>
<li class="menu-item">
<a>Link 2</a>
</li>
</ul>
</div>
But instead, it comes to <ul>and does not output any <li>s:
<div class="menu-header">
<ul id="menu-main-menu" class="menu">
</ul>
</div>
The strangest thing. Has anyone else come across this before? Is it too late and am I missing something obvious?