i am new to wordpress and i have to show the my menus in side bar in hierarchial way like

Home page

and they should be collapsible in starting and when i click on main menu of it will show me the sub menus .

my test enviorment URL is

and the html who's copy i have to do in my menu is


any plugin who fullfill my requirement really very much help full to me.

and i already tried some plugin's like collapsing-pages.0.6.1.zip,gd-pages-navigator.zip,flexi-pages-widget.zip but none of them giving me that effect.


1 Answer 1


You do not need a plugin to do this, you can do it with wp_nav_menu() (and it's related functions) and CSS. Specifically what you should be looking at is the .current-page-ancestor and .menu-item-ancestor to display (or not display) the desired links.

  • as i written in my question i am very new to wordpresss so can u please help me where i have to made these changes ? Commented Feb 9, 2012 at 10:32
  • it can be done with any plugin so i dont have to write any code Commented Feb 9, 2012 at 10:41
  • If you already have the side menu setup, you can just modify it in Appearance->Menus
    – mor7ifer
    Commented Feb 9, 2012 at 10:58
  • yah, i already done there but side menu appearing in a vertical straight line.i want to them be categorized and collapsible and expandable Commented Feb 9, 2012 at 11:08
  • Then modify the CSS...you might need some javascript too. If you are asking how to do the CSS, it is not an appropriate question for this site, as it does not deal with wordpress.
    – mor7ifer
    Commented Feb 9, 2012 at 11:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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