You say that you know about show_in_menu
parameter for register_post_type()
but it seems like you missed the options for this parameter:
- ‘false’ – do not display in the admin menu
- ‘true’ – display as a top level menu
- ‘some string’ – If an existing top level page such as ‘tools.php’ or ‘edit.php?post_type=page’, the post type will be placed as a sub menu of that.
So, all you is set show_in_menu
to options-general.php
(top level settings menu):
add_action('init', 'cyb_custom_players');
function cyb_custom_players() {
$args = array(
'show_in_menu' => 'options-general.php',
'label' => 'Custom Players',
'public' => true
);
register_post_type( 'custom_player', $args );
}
Related Posts:
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Renaming Menu Item within Admin Menu Section for a Custom Post Type?
- Settings page above CPT page in admin section
- How can I put content before my custom post type default pages?
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- Admin menu post type
- Load a script just to custom post type in admin
- Loading External Scripts in Admin but ONLY for a Specific Post Type?
- Adding an Archive of Posts to the Navigation Menu in WordPress 3.0
- Adding custom post type archives to a WordPress menu
- How to add custom post type archive page links to nav menu?
- Add “Last Edited by” column to custom post type list table
- Query menu_order custom post types
- Filter custom post types in admin not working
- Create a dropdown with Custom Post Types as option in admin
- Custom Post Type Menus
- Highlighting current item of custom post types’ sub pages, listed by wp_list_pages
- Extend walker class with custom post types [closed]
- Prevent reload confirmation after AJAX save
- Admin Post Update Redirection to Posts Screen
- Custom Post type sort order not working in the admin area
- Custom admin columns for ALL custom post types
- Add custom column to custom post type overview in backend
- Unable to filter on field on edit.php page
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- No results searching custom post type in admin panel
- Custom Post Type and taxonomies’s labels localization not working
- Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
- Show admin help message across custom post type parent and child posts
- How to show custom (checkbox) field value in admin post list?
- Highlight parent menu item when child post
- wordpress custom post type remove duplicate menu item
- Using WPAlchemy metabox values in another metabox
- adding .current* tags to custom post types and taxonomies
- How to get custom post type menu_name?
- How do I create an archive page for standard posts?
- Add text to wordpress admin ‘Add Post’ edit
- current-menu-item class for custom post type parent
- How can I change the title of an Add New page in Admin for custom post type
- How to customize admin posts based on the user who is logged in
- how to get post slug from url in wordpress
- Set a default category – if the user didn’t select one- before creating a post
- Fake mark a menu item as current_page_item/active in WordPress
- How can I create a custom meta box to add an mp4 video to a page?
- Add/Remove current_page_parent class
- Update menu when saving settings
- Add acf field in title (admin table)
- custom post type not showing in menu
- Custom Taxonomy Navigation, with current menu items for children?
- Display posts from Custom Post Type in category page on front-end
- Use menus with anchors
- Get parse_query filter to return slug instead of id
- Selecting a post in Dashboard
- Querying both pages and posts
- Second Set of Eyes: One custom taxonomy shows in Appearance > Menus, one does not
- page menu entry for custom post type
- Filtering posts list table
- CPT Validation to not show “Post updated.”
- Use custom walker to add taxonomy terms to main nav menu
- Review site custom post type structure
- Ordering Submenu Pages in WP 3.1
- Which Template Page Should I Use?
- Use remove_meta_box conditionally on custom post type
- How to check if post/page or taxonomy post is published by admin
- How can I create an automatic drop down menu with my tags?
- show current item in custom menu, when inside a custom post type
- Prevent custom post type from showing up in custom menus
- CPT Columns doesn’t show categories
- Insert Custom Post Types
- Custom Post Type – Support “author” only for admins
- Showing User’s Post Counts by Custom Post Type in the Author.php?
- Custom Post Type – Portfolio no longer works
- Function to add custom HTML into head in custom post-type list page
- Multiple custom post types on same admin page
- Custom post type posts wont show in wp_nav_menu()
- Placing Admin Post Metaboxes in Tabs
- Is there any filter to add a custom attribute to the tag in admin panel?
- build child and anchestor three from post parent
- wordpress get menu id by custom post_type?
- How to hide private posts even if user is admin
- Adding orderby url parameter to main CPT admin menu link
- Help Adding filter to Add Media button for custom post type
- Pagination in wp-admin for CPT
- wp_nav_menu doesn’t seem to work on custom post type pages
- Custom post type doesn’t display on admin list
- Use the page picker from wordpress menu creation page
- current_menu_parent for custom post type and custom url
- Calling the first & last post by category in custom post type
- Shared Custom post type between WP network sites
- add current-menu-item to multiple custom post types
- WordPress Author Posts Review After Every Change In The Same WordPress Post
- Redirect preview single post link to a page
- Custom Taxonomy Showing in WP Menu
- CPT Archive with parent page
- Setting a Master Menu on a Custom Post Type
- and custom post_types to custom menu
- How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?
- Navigation won’t update to show full path to single post
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- Issue displaying multiple TinyMCE editors with WPAlchemy