WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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?


share|improve this question
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

@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

Your Answer


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.