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.

I want to implement a menu walker system where only those submenu items get listed which have a specific parent. So let's say I have two level one menu items, A and B. On a page I want to get listed the descendant items of menu A only. I want to use the same menu across the site, so creating two different menus for A and B is not an option.

What I want to know basically, is there a way to get to know the parent item when the walker is going through the menu, so that I skip certain items based on that information.

share|improve this question
I am not entirely sure you are asking for same thing, but sounds a lot like this Display a portion/ branch of the menu tree using wp_nav_menu() –  Rarst Jan 12 at 11:53

Your Answer


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

Browse other questions tagged or ask your own question.