WordPress.org

Ready to get started?Download WordPress

Forums

Admin Menu Highlighting (1 post)

  1. akmjenkins
    Member
    Posted 3 years ago #

    So, in the codex and register_post_type, I've come across the code tha allows you to put custom post types in admin menu submenus using the following:

    'show_in_menu' => 'edit.php?post_type=parent_post_type_slug'

    However, when I select "Create New" on this page however so the URL is now something like:

    /wp-admin/post-new.php?post_type=child_post_type_slug

    The parent_post_type admin menu IS NOT highlighted. Although definitely not a critical issue, it's still an incorrect implementation issue when a user specifies a value for the 'show_in_menu' argument when registering a new custom post type.

    Is there any work around? Can someone confirm that this is unexpected/desirable behavior?

Topic Closed

This topic has been closed to new replies.

About this Topic