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
- Inconsistent temporary 404s on whole install | PHP error with post-template.php
- Search that will look in custom field, post title and post content
- Date archives for custom post type
- If featured image doesn’t exist, show post content
- Is flush_rewrite_rules necessary when creating a custom post type? Why?
- How can I add dropdown widget/box to admin post page?
- How do I redirect all 404 errors of a specific post type to another URL?
- Unable to filter on field on edit.php page
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- How to save the checked boxes?
- How to get only one category of custom post type?
- Error after deleting Custom Post Type with a function (no trash used)
- Using posts and postmeta table to store custom Address Book Plugin data
- template_redirect not working, apparently for no reason
- Append taxonomy terms as class names in markup?
- Change message given when deleting post from custom post type
- Using WPAlchemy metabox values in another metabox
- Loop through posts of a custom-post-type (event) and create .ics (iCal) file?
- How to count custom post types with conditional operators
- Set object terms not working on plugin activation
- Using custom page templates with plugin [duplicate]
- Using wordpress template tags within an array
- Getting the URL of the parent page
- get_posts of Custom Post Type AND Custom Taxonomy
- How to add a custom taxonomy to show up in a custom post type menu?
- Replace text in post from cvs
- Get parent categories of custom post type
- Can one create multiple Custom Post Types with a for loop?
- Form action/link to render a plugin in WordPress front-end
- How to add custom field to view-edit post type page
- Static apple-app-site-association file with wordpress
- How to Create a WordPress Plugin With Custom Post Type/Custom Field Features?
- Breaking up CPT output into two columns
- how to echo meta tag in header using php
- PHP question: how to combine syntax?
- How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data
- post_parent in custom post type
- Dynamically insert code to custom post type loop
- widget_posts_args not using the number of posts in widget
- How To Post WordPress Custom Post Types to Twitter via IFTTT
- Undefined $post in wp_query
- How to add query args to links to CPT admin submenu
- Importing JSON feed giving Notice: Array to string conversion error
- How to add and display custom content that is not a post
- List latest post out of 2 custom post types
- Problem with adding custom post type meta to header by plugin
- Creating alternate meta box context locations
- Fetch data from two custom post types and create multidimensional array for output to html table
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- Create an user checklist system for a course plateform using ACF Pro and ACF Extended
- How to get the custom post data using post id in WordPress?
- See if the email exists or not
- On saving Post My permalink is updated and category is removed automatically which cause the 404
- Why are custom taxonomies only appearing on the edit page of one of these types, but not the other?
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- How to add specific terms in a custom post type?
- WordPress Custom Post Loop
- Limit custom post type to the authors only on front-end!
- WP_Query – How To Query Only Custom Posts With No Children of Their Own?
- programmatically generated custom post type is created more than once
- ‘Simple’ Reservation System
- Accessing download link from the loop with WP Download Manager Pro
- Create posts inside CPT post
- Taxonomies are not showing in the category dropdown
- Combine multiple separate lists into one
- Show Post columns to specific users on condition
- Custom Taxonomy – fields
- Custom Post type plugin is using theme single.php and style.css
- Print post category name from a custom post type wordpress
- CPT post doesnt shows tags and category on backend admin page
- How to make sure, that only the selected post is changing?
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Registering an optional custom post type from a plugin
- Get month and day from a Date Picker custom field
- Generate custom RSS from a plugin
- Select Menu for Custom post Type does not save
- is_singular won’t call my functions?
- Inserting two categories
- Comments are not working on Custom Post Type
- How to change post cpt with submit button?
- Custom Post Type featured option