• Hi!

    I need a PHP Script on my WordPress Site to Set a Custom Menu (already made) On as Parent Page’s Menu on in the navbar, And subsequent child pages.

    I will be using dozens of parent pages (each having a different menu). and dozens of child pages under each parent.

    I’m new to coding and wordpress. Does anyone have any thoughts??

Viewing 1 replies (of 1 total)
  • Thread Starter my401kadvisor

    (@my401kadvisor)

    My current solution has been to use the plugin conditional menus, and it works but requires manually selecting every page I would I want, including child pages, and it will be pretty time consuming to select every page for every menu (as I’ll have so many). The plugin also isn’t organized well.

    I found some code that will do an action for any parent, but don’t know php and don’t know where to go from here to apply a custom menu to a page.

    global $post;

    if ( is_page() && $post->post_parent == 4 ) {
    );
    }
Viewing 1 replies (of 1 total)
  • The topic ‘HP Script on WordPress Site to Set Custom Menu On Parent Page's Menu And Child P’ is closed to new replies.