Register the post type without a UI ('show_ui'=>false
), then you will have to to create a form on your submenu page(s) and one or more handlers for those forms. wp_insert_post
/wp_update_post
can handle the post insertion if you give them the right information. Based on the information available, that is the best I’ve got.
For a custom post type, you’d never go to “Posts >> Add New”, though. You’d go to “CPT-Name >> Add New”. They are distinct menus.
Related Posts:
- How to remove admin menu pages inserted by plugins?
- How to use more than 256MB of memory in the admin?
- Add separator to admin submenu
- What is the best way to customise admin files so they survive future upgrades?
- Creating my own Admin Forms in a WordPress CMS?
- How do I set up a webhook?
- Modify custom Users Manage page
- How to build custom WP admin with custom URLs
- WordPress prompt checklist before publish?
- Adding an email column to a Custom Post Types Admin Screen?
- How to get value from custom backend menu
- Retrieve and display data from custom db table in admin area?
- Custom Dashboard Home Screen Options
- How to add another page in appearance tab of admin panel?
- Add custom column to Users admin panel with Types user custom fields?
- Hide upload image fields for the different media upload popups
- $wp_customize->remove_section for customizer setting?
- Admin Panel – Custom Menu Sub-Item LINK
- Adding all sub-pages to the menu manager
- Preserve custom URL parameter after saving post
- How to get custom page template being edited in gutenberg editor
- Change the Labels of Users to Customers in Admin
- Organizing the position of widgetized areas in the backend
- Admin search post meta
- Customizing Users in Admin Area
- Data won’t save if metabox within conditional in admin. What am I missing?
- Simplify the admin end
- What is the best way to modify Admin Panel on WordPress?
- Stop Expansion of Top Level Menu in the WordPress Admin Sidebar
- How to create “custom page types” with different custom fields in them?
- add an option to the read page
- How to remove admin menu pages inserted by plugins and themes in the top admin bar?
- Mimicking admin panel menu from wordpress 3.0.1
- Select input in metabox not updated
- Custom admin menu items
- Add helper text in custom-header section in admin
- How to create custom backend admin menu in different languages?
- remove screenshot.png via dashboard
- Add a menu item to admin dashboard which isn’t a link? [duplicate]
- POST 429 Error when trying to place more than 20 images into post at once
- Adding more than one WordPress Gutenburg block type?
- How to fix custom add menu page preventing media library from loading
- admin aoolbar add_node() and pulling in my post slug
- My connecting URL form in html to PHP does not work
- Custom Admin Section
- how to hard link to the posts page?
- Admin menu disable new/delete page
- Adding pages to the Admin panel
- Customize Admin Section
- How to create functions that affect only a specific user
- Create users via PHP
- Any post install tips after installing WordPress 3.0.1?
- Version Control: Entire site or just pieces?
- Getting a stack trace when an error occurs?
- Maintaining synced staging/production WP sites
- WordPress Multi Site Best Practice
- Sub posts and non unique post_name
- How to let a single post have its own domain name
- page_template toggle between 2 templates + 2 permalinks for same post
- How to instantly delete posts/pages permanently?
- How to re-arrange media uploaded using : media_handle_upload() as per year / month
- How could we customize the all posts page in the admin panel?
- Adding Pagination on a Custom Author Page
- How can I get the page url slug when ‘post_name’ returns an id?
- Woocommerce Product page edit
- Convert an theme options page to use in customize.php also?
- The best way to write an FAQ page?
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- Get Value from Column in Plugin Table [closed]
- How to provide a demonstration of WordPress for new customers
- Display User ID instead of Name or Username
- Woocomerce custom billing address fields display in order details [closed]
- Bind JS event to WordPress control customizer
- Get rid of title from static front page
- Make custom page look exactly as homepage
- $wpdb->insert running multiple times?
- OrderBy multiple custom meta fields
- Track usernames with piwik [closed]
- Woocommerce – Print Product’s Custom Field In Email
- Change the destination of the URLs in post.php
- How do I list custom taxonomy terms with the links?
- How to unpixelate logo?
- Remove header title form page through CSS [closed]
- wp_enqueue_script JS code runs too late (after user begins interacting)
- Validate user login in php
- Easily add custom HTML outside the main container?
- Query Product categories what have a custom field
- Make Widget appear on Dashboard
- Woocommerce dependent attributes
- How to find and replace (or add) specific word in a specific category?
- Displaying all Custom fields on post except some
- WordPress Install – “end of script output before headers” when running simple php script
- How to appoint different users to different pages?
- wp_is_mobile() inside js
- Is there a way to hide a user’s posts from their Activity feed?
- Setting up staging area
- Do i need to use PHP in customizer api?
- Add variable : 1 Week ago
- how do i add logo in my site
- Custom Search on media files PDF images pages posts