The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

How do I keep an Admin Menu page open? (1 post)

  1. RonStrilaeff
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic