Yulian - <br><br>Have a look at the codex page: <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">http://codex.wordpress.org/Function_Reference/wp_nav_menu</a><br><br>Try a custom 'fallback_cb' that includes the `<ul>` element you need, for example:<br>
<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">function my_wp_list_categories() {<br> ?><ul><?php wp_list_categories(); ?></ul><?php<br>
}<br></blockquote><div><br>Of course, you will likely need to write the CSS specific to your theme still to utilize both the custom menu and the fallback wp_list_categories, but this could help ...<br><br>Quickly tested using this: <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'fallback_cb' => 'my_wp_list_categories' ) ); ?><br>
<br>... in Twenty Ten.<br><br><br>Cais. <br></div><br><div class="gmail_quote">On Fri, Aug 13, 2010 at 7:37 AM, yulian yordanov <span dir="ltr"><<a href="mailto:yul.yordanov@gmail.com">yul.yordanov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
I know that custom menu is a must-have function in the themes already.<br>
But not all menus are supposed to be customizable aren't they?<br>
<br>
In my case I have two menus - Pages and Categories. Dealing with Pages<br>
was easy but Categories did not liked custom menus :)<br>
What I mean: The old-fashioned way - (wp_list_categories) produces<br>
only plain list <li>, and in order to make it looks like menu i have<br>
to enclose <?php wp_list_categories(); ?> with <div><ul>. When I<br>
apply wp_nav_menu() it has another, own <ul> which is there by default<br>
and brakes defined list format. If I leave only wp_nav_menu() without<br>
enclosures I can't use callback (wp_list_categories) because as I said<br>
it prints just <li>.<br>
<br>
As a whole I think these custom menus are useful but underdone yet to<br>
be included as a must feature.<br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</blockquote></div><br>