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.

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
add comment

1 Answer

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 $depth to control the levels you want to display.

share|improve this answer
    
But how can I unfold that parent to see the children? –  user24828 Dec 17 '12 at 7:59
add comment

Your Answer

 
discard

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