You should be able to provide the slug of your top level page (admin.php?page=my_page
) when registering your CPT(s):
register_post_type( 'matches',
array(
'labels' => array(
'name' => __( 'Matches' ),
'singular_name' => __( 'Match' )
),
'public' => true,
'has_archive' => true,
// Add your page slug to 'show_in_menu'
'show_in_menu' => 'admin.php?page=my_page'
)
);
Related Posts:
- post_type_link filter causes 404 on the CPT page it’s used on
- Separating Search Results By Post Type
- Date query for a custom meta field
- Change plugin’s has_archive = true to false?
- Query posts between two dates (custom meta keys) CMB2
- Used with meta_query in query_posts works slowly
- Change upload_dir folder at a certain cpt but cant change back
- How to have the right design for a custom post type without accessing themes
- Custom Post Type | Fatal Error on register_post_type()
- Set object terms not working on plugin activation
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- GravityForm: Populate Dropdown with custom post type [closed]
- how to add extra meta box or textarea into custom post types
- “add_post_type_support” with Custom Post Type & ACF
- How to quickly reorder posts in the admin panel that will persist for the wp-api
- check if post title in a custom post type exists in page
- How to hack YARPP plugin to find related posts for custom post type?
- Update menu when saving settings
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- Custom posts don’t work
- How to retain $_POST data when submitting form to custom page
- Why get_posts() not returning only selected category posts from Custom Post Type?
- If post has custom field then display css-class
- Replace text in post from cvs
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- Tracking changes in admin-page so user gets warning when leaving the page
- Send notifications to custom post author when custom post is edited
- Custom Post Type + Categories
- WordPress randomly shows 404 errors
- Custom Post Type slug same as page name
- Shortcode for CPT post content in a page
- custom post type and non-standard gallery
- Make a custom_post translatable
- How to change permalink to include custom post type
- How to Add multiple instance of meta box to custom post type
- Adding custom image sizes and post types to a plugin or to a theme?
- To use custom post types, or not to use
- Autocomplete or suggest from post titles inside plugin
- Show all tags on custom post type
- How to hook WP initialization without modifying functions.php
- Add categories to a page with out using Custom Post Types
- ACF in wordpress
- post_parent in custom post type
- Pods CMS: How to add custom column to Adnvanced Content Type
- How To Post WordPress Custom Post Types to Twitter via IFTTT
- Custom post type’s posts are not showing anywere but in xml sitemap
- Unable to format dates to put in event calendar
- Filter content in shortcode
- Get image from external URL
- Getting only one post per category
- Override Plugin Custom Post Type ‘single’ view
- Update Post Status On Woocommerce Payment Complete
- Modify Posts from Custom_Post_Type within the plugin
- Create a simple Testimonial page
- Custom post type in Custom widget – $listItem
- Add custom columns in custom post type browse page
- Validate Custom Post Type fields
- Custom Plugin – Query CPT – Display Results
- Plain links in single-class.php and archive-class.php not working
- how can i show a google map in custom post type
- Custom post type archive – error in nav-menu-template.php
- Accessing download link from the loop with WP Download Manager Pro
- Reading Custom Post data so I can have user update Manually
- Why is this function so slow?
- Permalink URL connection between two custom types
- Custom Post Type Front Page Gives 404
- Show Post columns to specific users on condition
- Disable ‘Add New’ in custom post that is made from CPT UI
- Custom Post Type single post type shown in theme single.php
- Default custom post type url
- Run query on specific admin options page and send results to select field in another function
- Include images from pages in wp search.php results in default wp search
- Create Inclusions and exclusions
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Enable shortcodes on custom post type
- Best Plugins for Complex Index of Resources [closed]
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Display subcategories in the filter on CPT
- Understanding the workflow of form creation plugin
- Adding CPT changes entire layout of my site except for the archive of that CPT
- Use Custom Post Type as Storage Container Without Registering It
- next/prev post link by relationship post 2 post
- How to display custom post type in a submenu?
- Plugin Error on activating
- Custom Info Box at end of posts?
- Add Excerpt On Quicksand Plugin
- Author profile comments system
- Custom Post Types in plugins?
- Plugins for putting Custom Post Types into the Menu
- How to add post type in masonry posts elementory widget
- Remove plugin’s custom post type archive page and single pages [closed]
- Plugin – read post into blank page [duplicate]
- How to hide home title on pages and posts?
- WP_Query is getting the post but the_post() not rendering any Post
- make playlist from a custom post type
- Custom Post Type to Plugin
- Woocommerce product page is not showing custom css [closed]
- How to delete unnecessary custom post types in the UI
- add_filter > posts_where works partially
- Simple Share Buttons Add Plugin and Custom Post Type