I suggest just making a new Post Type with the default WordPress register_post_type().
function create_my_post_type() {
$labels = array(
'name' => __( 'Providers pricing', 'myplugin_namespace' ),
'singular_name' => __( 'Provider pricing', 'myplugin_namespace' ),
'menu_name' => __( 'Provider Pricing', 'myplugin_namespace' ),
);
$args = array(
'labels' => $labels,
'public' => true,
'description' => __( 'Pricing stuff for my awesome plugin', 'myplugin_namespace' ),
'show_in_menu' => true,
'supports' => array( 'title', 'thumbnail' ), // or whatever else you want from WP_Post
'has_archive' => true,
);
}
To be clear: this should be run during plugin initiation. To add custom meta-boxes for your fields, read up on the function add_meta_box()
Related Posts:
- add_meta_box Callback not being called
- how do i remove posts from a WP_Query so the pagination is right?
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- How can I show drafts in wp_dropdown_pages list?
- Template for custom post type shows all posts instead of just one
- Plugin allowing for artists, events and venues
- wordpress reusable content blocks
- Saving Custom Post types and fields to a custom table
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- auto populate list of questions if user select a category xyz
- Redirect to another page using contact form 7? [closed]
- Custom Post Type Fields
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Sticky option for custom post types without using custom fields or plugins
- How do we update a custom file upload field with the Advanced Custom Field plugin?
- Get post content from outside the loop with plugin shortcode usability
- How can I store data from custom fields to custom tables?
- Use jQuery Datepicker code from plugin
- “After file loaded” action
- Dictionary-style definition list plugin
- How to create repeater field manually, without plugin (ACF Pro)?
- Register PODS Custom Field with WPGraphQL [closed]
- Adding LOAD MORE on a page
- WordPress hide post from custom post-type on a single page
- Create multiple posts when a custom post is created
- Displaying image from a repeatable group
- Fake Single WordPress Post (Page) Loop
- What method should I use for a sidebar widget that reads latest posts?
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- How can i do custom author list?
- How do I add custom fields to the “Edit page” admin screen?
- A plugin for software reviews site like this one?
- Outputting custom field query from a plugin to the website header
- Links not opening as they should. Custom WP plugin
- How to access the page without registering in wordpress
- how to compare date meta value in jet smart filter Date query?
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- How to get a variable number of posts per post type on the main loop?
- Create page when plugin is activated
- How to solve suspected memory issue in custom WordPress loop?
- Add .html extension to custom post type taxonomies
- How to load a new template page according to a particular URL?
- How to get the custom page get_permalink?
- Custom Post Type causes Page Not Found
- How to get custom field image url of specific size
- Datepicker not supporting timepicker
- How WordPress autosave can save plugin fields?
- Custom Text Under Navigation Links
- Set a category for a page
- Make the checkbox meta field checked by default
- Building a store locator with google maps
- Do action only on certain front end pages?
- How can I create a custom shortcode that will return a custom post type by ID?
- All of my custom posttypes are 404’ing
- ‘No Results Found’ on single post for custom post type
- Making a Template for a CPT created by a plugin
- is there a way to link one of the field in ACF field group, to a field in a media attachment page? [closed]
- How to create an input field, and base the output on spreadsheet data? [closed]
- php page not found for plugin options menu
- Every new post/draft has a custom field variable “yst_is_cornerstone” showing
- Display Custom Field Value on Admin Page Column
- How to get a list of bundled products using wp_query in woocommerce
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Trying to add_action in a loop
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- How to add an extra, independent set of custom fields?
- Custom post type change excerpt more and excerpt length
- Order posts of a custom post type by the event date using FT Calendar Plugin
- Creating teams of users in WordPress
- hardcoded wp pages/plugins problems
- Parent Child Custom Fields with Advanced Custom Fields
- How display specific category post to specific users?
- Advanced Custom Fields Plugin – Images not displaying
- Gantry Framework: new page loads homepage content instead of page content
- What snippet do I need to type to show my ACF field show up on my theme?
- Is there a way to make [Table Of Content] plugin while not using revision data?
- Need to edit author permissions | custom taxonomy
- Is it possible to pin a post in second position from top
- Save log for imports in WordPress database – options-table, custom post type or other place?
- How to display emails as a post?
- Error in Fetching Custom Post Type parent Category URL (slug)
- Hidden permalink different from displayed permalink
- How to avoid duplicate posts queried from custom meta?
- What plugin would make this happen? If is the theme
- If I am not writing a theme, how do I add custom fields to a user for a plugin
- Python in WordPress – A “Hello World” implementation
- Custom Fields through plugin in a Custom Post Type
- Multiple domains, Single database, 1 Parent/Master with all content, other domains/slaves with filtered content (based on “location” variable)
- CPT-onomies CPT_TAXONOMY->get_terms extremely slow with 6K posts
- get recent 12 days post then random in wordpress
- ‘all’ hook and add_action issue (class based plugin)
- How can I save a setting field with multiple checkbox options generated by a foreach loop on a custom wordpress admin page?
- How to laod wp_enqueue_style to another header i created my self
- How to change data format in custom meta box field [closed]
- Is there a plugin or another way that can help me find out the underlying files of a page/post? [closed]
- jet engine listing for every single taxonomy in post type [closed]
- Create new page without menu in custom wordpress plugin
- How to add CPT in Elementor pro search template