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
- How can I get the Media Library backend to show larger thumbnails?
- Import bootstrap 5 and bootstrap icons in wp-admin backend
- I want to force secondary rows using WP_List_Table
- How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- How can I setup a development environment which auto refresh page when code have changed [closed]
- Client viewing before deployment
- Can I upload my self hosted WordPress website on GitHub as a project? [closed]
- Advice on how to structure a custom plugin
- Custom query pagination with php parameter as arg problem
- Need to replace some text string on a title
- Problems with setting up a subdomain to serve images and scripts
- How can I delete the word `Category:` from page titles? [duplicate]
- Custom roles and capabilities media not work right
- How can I add category variable inside posts?
- Password Protection issue
- Add a custom intro page
- How to have different background image based on post category
- Why does a custom php code inside a custom template not get executed?
- How to have differents sites share the same tables of DB?
- How to add particular attribute of product in shop as well as home page
- How replace theme styles?
- Login CSS style doesn’t load instantly
- Javascript Tooltip not fully working on my wordpress page
- How to use the same custom page template to iframe multiple urls with entry of new url entered from backend
- Custom Icon assigned to menu items not working for multi-site networks
- Put page on Archived statut after end of publication date
- Delete page titles
- Issue with navigation bar in child theme
- Creating a WP Test site without /uploads etc
- Add button to My Sites dashboard page (multisite)?
- require/include php file in add_menu()
- Custom Route Returns 301/Passing Variable from Input
- Floating CTA Image Integration
- Woocommerce dependent attributes
- Cannot go to next page on phone but can on computer
- How Can I add show_post_count in get_archives_link?
- Trouble with custom login page
- I want to use a product thumbnail completely different than the product image
- clickable toggle menu, help
- How can I edit the WordPress menu link to allow fb: instead of http
- Fixed bottom menu on mobile doesn’t work on search included in Child Theme of Storefront
- Perform javascript when an input in Customizer is selected/focused?
- Create page when a new site in multisite network is created?
- Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”
- Change Dashboard menu position?
- Get site ID from attachment url?
- Change login cookie expiration time?
- Disable “-mp4-image” screenshots from appearing in Media?