0

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.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.