Ready to get started?Download WordPress


Custom post type issue (4 posts)

  1. bbarton
    Posted 1 year ago #

    I have added a menu item with custom post type and I am adding it to a admin menu i created with add_menu_page(), menu looks like below

    Top-level menu item
    -menu item (created with register_post_type())
    -menu item #1 (created with add_submenu_page())
    -menu item #2 (created with add_submenu_page())

    so when i add a new post through my new custom post type, the highlighted menu item changes to #1. If I add another custom post type and add it to the menu it will always highlight #1 when clicking add post through either custom post type menu.

    Any clue why this is happening?

  2. Konstantinos Kouratoras
    Posted 1 year ago #

    Could you post a screenshot to clarify the issue?

  3. bbarton
    Posted 1 year ago #

    Add Coupon was clicked through the Coupons tab, but settings is highlighted,

  4. Konstantinos Kouratoras
    Posted 1 year ago #

    This is probably happens because you set the same title to both parent and child item.

    Could you post the code lines that you create these items?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.