• Hi!

    So I found a plugin that will easily allow different pages to use my custom menus as their main menu. It works great, but I will be having dozens of sub sections, each needing custom menus, and the plugin (as far as I can tell) you have to select each page you want to use each custom menu, which would take a long time.

    So my structure is each mini section has 1 parent page with about 20 child pages… so I was hoping to just select the custom menu of the parent page, and have all the child pages pull the custom menu. Any help with PHP to automatically pull the parent page’s menu and apply it to the child menu?

    Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter my401kadvisor

    (@my401kadvisor)

    How do I take the code below, and return the parent page’s menu on the child page?

    if ( is_page() && $post->post_parent == 4 ) {
    ; ); }

    did you ever figure this out? I’m looking for the exact same thing. I stumbled upon the same plugin and like it but I’m going to have hundreds of pages and adding the correct menu for every child-page will just be a hassle. If you could help I would greatly appreciate it. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child pages have same menu as parent page PHP’ is closed to new replies.