WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. RonStrilaeff
    Member
    Posted 1 year 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