A CPT has a parameter called show_in_menu
to add it to a specific menu.
You must set you CPT to 'public' => true
Then in your deals $args
(it’s unclear which one you wanted added ) add something like,
'show_in_menu' => 'edit.php?post_type=screenshots'
You can then adjust it accordingly.
Related Posts:
- Setting up a page to house certain types of posts
- Remove slug from custom post type post URLs
- How to get post content by calling ajax?
- How to show all posts of the category in wordpress?
- Get category id from post id of a custom post type
- How do I add a new custom post format?
- Limit widget to a specific registered sidebar
- WP_List_Table Inside Metabox Not Working on Submit
- Why get_next_post_link() or get_previous_post_link() doesn’t return the required links?
- Add metabox with media uploader in a custom post type [duplicate]
- How Can the Users Make a “Playlist” of Posts?
- Showing current taxonomy terms
- How to remove/hide elements from the admin menu?
- Newer/Older posts links display same posts on every page
- automatically create taxonomy with same name as post title
- custom sortable column
- Wp-query causing problems with the_content();
- saving custom post type data to different table in wordpress
- Display “Post 2 of 4” on single post page?
- Query post types with multiple keys
- How to embed form data within the ‘Add new post’
- When viewing single parent post, display list of children
- Limit Authors to their Own Posts on front-end excluding admins
- Remove Post Page “View Post” Link
- How do I check if a posts status is set to draft or pending?
- Get all posts WHERE custom_field is LIKE value
- How to make post sticky in the admin page?
- Loop on front-page.php
- Custom Post Type / Tab Limit
- rewrite custom post type slug in wp admin
- How to create custom boxes with text inside?
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- Restrict custom post type from appearing with ?post_types=
- Disable block with taxonomies at post page
- Which post does a taxonomy term belongs to?
- Changing custom type name hides the posts
- Add custom field to Posts and sort by it
- Two Custom Post Types Many to Many Relationship
- Problem with displaying posts in the CPT category
- Add Custom Post Type as top level menu item for a custom page
- How to change the post type a theme shows by default?
- No Permission to add new Page, Post or CPT with Admin role
- Update postmeta Parent when post_status child change
- Shortcode not working with post counter
- Check post on publish for blank title
- Different Limit number of post on different archive page
- How to change “post_class()” for a custom post type?
- Help With Warning on creating new Post types?
- Including link to custom post type in ‘wp_list_pages’ function
- Get an array wich contains the post_name of every post that has the custom post_type “pelicula”
- Custom post types and ‘new WP_Query’
- Showing custom post type categories in the menu
- Stores category posts in an array
- I can no longer post or even save a draft, getting the error “A post type mismatch has been detected.”
- Dynamic pages for linked categories and content
- Separate Content from gallery (custom post type)
- How to set the mainpage of a custom post type?
- displaying content of custom post type
- Reusable metabox backend and frontend
- How to query Posts from a custom post type which contains a custom taxonomy?
- Display post from custom post type
- Top level menu position overwrites another entry
- Does “Custom Post Type” can have page hierarhy option?
- How set template for “custom post type” individual post
- A sports wordpress website
- Metaboxes inside Tab
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Settings -> Reading -> Posts Page ->Blog — is not working in my website
- Is it possible to get the specific content on the search page?
- How to mass get post editor URLs
- How to create additional rendering for custom post types?
- SELECT custom post type and its meta in SQL
- Restrict admin pages for specific user role
- How do I find the count of the current post?
- remove duplicate name submenu link from the custom post type
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- How do I insert a custom post type query after a certain number of recent posts and then resume recent posts?
- How to create editable sections in wordpress?
- Instructor can view, edit, delete only theirs courses
- Add input radio menu to post
- How to properly get the wp_postmeta.meta_value of a custom post type in specifics?
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- subtracting the current post form then whole loop, which is generating all CPT titles
- Assign for all post of a post type a specific single-post template
- Widget area for individual posts (custom post type)?
- update a posts of other custom post type
- Get post from Category by Priority
- Show custom post type under last posts configuration
- Show custom taxonomy not in submenu
- Custom Post Type used for FAQs Accordion
- Custom Post Type Causing Admin Sidebar UI Issue
- How to Associate Posts with Pages
- delete custom post type using a submit form
- Custom Post Type children and grand-children in one list
- Why are my wp urls showing page not found?
- Post content stays the same but permalink changes ?
- Can I set a CPT title field to a dropdown with preset options if user is of a given type?
- Styling first post using Advanced Custom Fields
- How do I display the index position of a post from a custom post type?
- Two pagination in one page without AJAX