WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

Im working on a website where I need to create a submenu that shows only the parent pages. When I click on one of the parents it has to show the children from that parent.

Here is the menu hierarchy I used this widget plugin: Subpages Extended for showing the parents and children:

  • Parent
    • Parent1 from parent
      • Child1 from parent1
      • Child2 from parent1
    • Parent2 from parent
      • Child1 from parent2
      • Child2 from parent2

Could you explain me or give an example/tutorial on how to do it?

Thanks..

share|improve this question
up vote 0 down vote accepted

I think you don't have to use any plugin for that, check out:

http://codex.wordpress.org/Function_Reference/wp_nav_menu

and use $depth to control the levels you want to display.

share|improve this answer

Your Answer

 
discard

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