Title: Custom post type issue
Last modified: August 20, 2016

---

# Custom post type issue

 *  [bbarton](https://wordpress.org/support/users/bbarton/)
 * (@bbarton)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-issue-1/)
 * 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?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Konstantinos Kouratoras](https://wordpress.org/support/users/kouratoras/)
 * (@kouratoras)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-issue-1/#post-3582508)
 * Could you post a screenshot to clarify the issue?
 *  Thread Starter [bbarton](https://wordpress.org/support/users/bbarton/)
 * (@bbarton)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-issue-1/#post-3582560)
 * Add Coupon was clicked through the Coupons tab, but settings is highlighted,
   
   [https://www.dropbox.com/s/b065xke96z9372s/Capture.PNG](https://www.dropbox.com/s/b065xke96z9372s/Capture.PNG)
 *  [Konstantinos Kouratoras](https://wordpress.org/support/users/kouratoras/)
 * (@kouratoras)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-issue-1/#post-3582561)
 * 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?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom post type issue’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 2 participants
 * Last reply from: [Konstantinos Kouratoras](https://wordpress.org/support/users/kouratoras/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-issue-1/#post-3582561)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
