I suspect the problem is not when you register the post type but when you create the menu pages.
When you call add_submenu_page() make sure that the $capability argument is correct. In your case you want ‘edit_posts’:
$capability = 'edit_posts';
add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug );
Related Posts:
- Conditional for single-{post-type}.php
- Get list of all registered post types slugs
- How to build a complex page structure
- Proper way of making custom post type landing page or archive page
- Change permalink structure for custom post type
- Pagination gives 404 error
- add_meta_box: Datepicker like the one for postdate?
- How do you use JavaScript to detect the homepage
- wordpress 3.4 template files in subdirectories
- I am trying to output portfolio items with a picture. This code doesn’t seem to be working. What am I doing wrong?
- How to customize admin posts based on the user who is logged in
- Count all comments of a custom post type
- Custom fields in Permalinks?
- Custom taxonomy template for multiple custom post types
- How to debug a blank page?
- How can I create a custom meta box to add an mp4 video to a page?
- Add/Remove current_page_parent class
- Adding `supports` array to WordPress custom post type
- URI returns a post when it should return a 404
- Importing posts from XML into custom post type
- Use different taxonomies in different custom post types’ permalinks?
- Custom post type menu missing after 3.0b2 -> 3.1.2 upgrade
- Email friend for each Custom Post Type posts on a page
- How to make custom post type feed title = taxonomies?
- Categories of custom taxonomy don’t show any posts
- How to use terms from the same custom taxonomy in different roles in a custom post type?
- Trouble with CPT Child 404
- How to have the same url structure for both a CPT and a Taxonomy?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Static apple-app-site-association file with wordpress
- Is it possible to have a custom post type with feed but without the archive?
- Assign Custom post to Custom Taxonomy
- Custom bulk_action
- How to: wordpress job listing and candidates details
- How to add custom taxonomy in custom post type permalink?
- Add parent post to Custom Post Type [closed]
- Delete “Post Published. View Post” for custom post type
- How to add/edit advanced custom fields on custom post type’s WordPress REST API?
- What’s the name of the custom post type yearly archive template?
- Combine multiple getEntityRecords calls
- Query custom post type based on post id and custom field value
- Share root slug for Child Page and Custom Post Type (prioritizing child pages over posts)
- Use the custom post type archive for taxonomies?
- Adding Multiple Post Types to Query [duplicate]
- WP Query results showing posts outside of category ID
- Taxonomy template page not working
- Is there a way to group specific CPTs under a single dashboard menu item?
- Running a custom query inside another cpt single and trying to grab a variable
- trying to show single post but displays all post on a custom post type
- Under What Conditions Can I name my CPT the same as my CPT Page?
- Metabox does not show in custom post type
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- Query all posts under one taxonomy? Why is my code not working?
- Custom rewrite rule takes place AFTER the generic category rule
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- Create list from custom field comma separated values
- How to add Support to show Fullwidth Featured Image of Custom Post Types in WordPress.?
- How to fix the Post Preview Button (CPT & map_meta_cap)
- Fetch data from two custom post types and create multidimensional array for output to html table
- Restrict Custom Post Type per role in Dashboard
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- Query filter by value in meta_value array
- Search CPT by tag ids
- Custom post type 404 category page
- Expire post to draft by date-picker custom field
- Edit the default ‘post’ custom post type arguments
- Publishing failed. The response is not a valid JSON response
- add all blog posts to folder
- Auto generate excerpt from ACF field on a CPT that does not support excerpt or content
- ‘Simple’ Reservation System
- Combine multiple separate lists into one
- Custom post type, next and previous links by page title
- Reading Custom Post data so I can have user update Manually
- Add specific route for Custom Post Type (add/edit…)
- How do I control what template is shown based upon Taxonomy Term?
- Custom Post type plugin is using theme single.php and style.css
- How to add a custom button to each field of a Custom Post Types Admin Screen
- Most efficient way of showing children posts?
- Capabilities and mapping required for a role to be able to edit other’s posts of a custom type, BUT only be able to edit their own blog posts
- Permalink Problem with Custom Post Type
- Automatically convert standard posts with custom fields to custom post types
- One Post with different content, depending on a Page
- How To Display Category list from Portfolio post type plugin?
- Custom Post Type tag taxonomy “Page Not Found”
- Remove custom post type slug but keep related category taxonomy permalink
- Adding CPT changes entire layout of my site except for the archive of that CPT
- Custom post type and custom taxonomies display
- custom fields not showing before get_header
- Why is my custom post type shown in the wrong place?
- Custom Post Type Pagination for Bones Theme [duplicate]
- Custom post type category page not working
- Turn off comments for given CPT checkbox?
- Adding rewrite rules to Custom Post-type mixed with Taxonomy
- Categories in custom post types
- How to manage a bookstore
- Can I add a wordpress page using the slug for a CPT rewrite
- YARRP related posts with custom post type and wp-graphql
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- WordPress does not show the custom fields box
- Create a hierarchical list of posts that’s grouped and nested by category