Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Ok, so this site's navigation is built up from Categories.

However, my client wants specific grouping of the navigation items, ie.

x
y
z
----
1
2
----
3
4
----
6

There is no conceivable way to group these logically. So i think my best bet is to just do something like echo WpCat('x') and echo WpCat('4') i know this isnt the code but the general idea is how can i only echo certain category names as and when i need to?

Thanks

share|improve this question
1  
What if you use the built in menu option? I let you choose which elements you wanna insert (pages, categories, custom post types, custom...) right in the WP administration. –  kevin Aug 2 '11 at 21:35
    
Sorry i was a little skant with information. I have a main nav with about, contact, etc, but this is a categories menu, with just categories. –  benhowdle89 Aug 2 '11 at 21:36
    
This menu option lets you create as many menus as you want. It's just a matter of where you call them after. –  kevin Aug 2 '11 at 21:38
add comment

1 Answer

@Kevin is right. You can create any number of menus in

Appearance -> Menus

Just create a new menu for your categories. Lets call it categories. You can call this menu in your theme using this code.

<?php wp_nav_menu( array('menu' => 'categories' )); ?>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.