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

For example:

About Page (Parent)

  • History
  • Mission & Vision
  • Location

If I'm on the About Page, I need the wp_nav_menu to show the three children pages. But if I'm on the History page, I need it to show History (with current class), Mission & Vision and Location.

Is there a way to do this? Thank you.

share|improve this question
Yes there's a way. Please look at the answer to this question. wordpress.stackexchange.com/questions/2802/… – gdaniel Aug 14 '14 at 14:23
This will display the children of the parent page. But if I'm on the child page, I want to display the sibling pages. – Bernie Aug 14 '14 at 14:34
In your theme you can check to see if you're in a parent page or child page and then get the ID of the parent page of that child page. Once you have the ID, you can get the Page title and use it to pull the correct menu. – gdaniel Aug 14 '14 at 16:38

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.