Support » Plugins » Hacks » How do I keep an Admin Menu page open?

  • Ron Strilaeff


    I created a new admin menu using (add_menu_page and add_submenu_page) to manage a two custom post types and a taxonomy called “Galleries” they share. But the menu collapses when I pick the taxonomy from the menu.

    I want to behave like the “Posts” admin menu where when you click on “Categories”, the “Posts” top level menu stays open while you make edits on the “Categories” page.

    Here is the line from my add_submenu_page function call:

    add_submenu_page( 'sv_admin_menu', 'galleries', 'Galleries', 'administrator', 'edit-tags.php?taxonomy=gallery&post_type=card', '' );

    Is there some argument I’m missing? Thanks!

  • The topic ‘How do I keep an Admin Menu page open?’ is closed to new replies.