Instead of saving the CPT in the options table, try using register_post_type
immediately when you submit the form, then display a success confirmation plus the empty form again. This will have two benefits – one being you’re not bloating the options table, the other being that you’ll immediately register the CPT and be able to submit the form with the next CPT immediately.
Related Posts:
- Row actions not showing? Why?
- How to append element after thumbnail
- Get rewrite slug of custom post type in template
- Admin notice not displaying
- How to customize a permalink (URL) structure?
- Use custom metabox to update automatically a post after a given date
- Problems wp_insert_post and save_posts filter
- Show current custom taxonomy
- How exclude or skip post type with get_next_post_link
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- How do I add custom HTML to the content of an archive page’s posts?
- Validate Custom Post Type fields
- Custom post type page with parameter
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- How to show the post which checkbox is not selected
- Is it possible to get the specific content on the search page?
- Plugin Development using classes – Public & Private Callbacks
- Having issue on Loading Meta Data From CSV to CPT
- How to dynamically register custom post type
- How do I set the link in the Custom Post Type admin menu?
- How to List Thumbnails based on Custom Categories
- WP_Query search posts by custom post type and custom taxonomy
- Adding Meta Boxes while Registering a Post Type in a Class
- How to have the right design for a custom post type without accessing themes
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- I am having a problem with form updating/editing WordPress post on the frontend
- How to filter out post type meta?
- How to rename image at uploading on specific plugin or post-type in WordPress
- How to make in WordPress admin panel sortable column for the custom field, that count the number of page impressions?
- handling csv data with a custom post type
- Display custom field of specific post where post title matches variable
- Conditional to modify query results
- How do I alter the position of a Custom Post Type menu item within my plugin admin menu?
- Customize permalink when creating a post
- Loop through posts of a custom-post-type (event) and create .ics (iCal) file?
- Custom Taxonomy Not Showing in Menu
- Custom Post Type | Fatal Error on register_post_type()
- Output custom post shortcode. Help spot the error.
- How to count custom post types with conditional operators
- Set object terms not working on plugin activation
- Using custom page templates with plugin [duplicate]
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- WP_Query is printing out only one post when posts_per_page is set to multiple
- WP Query to displaying date and posts for that date?
- GravityForm: Populate Dropdown with custom post type [closed]
- Return array of categories to php function for current post
- Link users to a custom post type
- Create a random unique 6 digit number as custom field for custom post type
- How to output wordpress custom tags separated by comma?
- Get all of user’s custom post types in WP Admin for plugin
- Loading all files within a directory
- Issue with pre_get_posts on custom post type archive pages
- Blog page showing same content as homepage
- Custom Post Type Navigation on Custom Field
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Using several custom fields as custom post title
- Custom Post Type without an archive page
- Plugin translation not working apart from name and description
- Show Different Header on a Specific Post ID
- Get Post Primary Category
- Weird problem happening with custom taxonmy when creating/updating posts
- A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
- Custom Post Type rewrite
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- Can’t get order_by meta_value_num to work properly
- Custom Post Type: Upload Multiple Images
- Create custom post type on successful woocommerce order [closed]
- Adding custom tables to WordPress
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Detect where custom post type is declared
- Metadata for a taxonomy – is there any WordPress way of doing this?
- Very Slow Page – How to Optimize # of Queries?
- Dynamic page outside WordPress
- Using wordpress template tags within an array
- How to display Custom Post Type Post based on Tag with Shortcode Parameter?
- Getting the URL of the parent page
- Custom query to filter posts that have current post as a taxonomy [closed]
- Custom post type permalink returns bad url
- Hook to override title, image and content
- Insert Multiple Post with Same Publish Button
- Return the thumbnail meta data for getter and setter
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- How to display selected taxonomies by their parent
- Custom Field Order by Last Name and First Name
- Pagination for custom php code
- get_posts of Custom Post Type AND Custom Taxonomy
- What’s the difference between same wp functions get_posts(); functions in different form?
- get_object_taxonomies() returns empty array for custom post type
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Custom Post Type Loop throws 500 error when used in widget
- how to check if custom post type column already exists?
- WordPress theme custom capabilities not works
- Get posts from a custom post type by child categories of a parent category
- custom post type not showing in menu
- Custom posts don’t work
- Received nothing after executing AJAX post function
- How to make sure content doesn’t display if selection is empty
- Custom Post-Type not in admin menu
- get the custom post type title/name
- No posts found – Custom Post Type show_ui