Create Custom Post Types
Part 1: How to Add Custom Post Type
- Go to WP Admin
- Navigate to CubeWP Post Types
- Click Add New
Part 2: Basic Settings
- Enter your Post Type Slug, Plural Label, Singular Label, and Description
- Select a Menu icon
Part 3: Advanced Settings
In this section, there are advanced options to configure the Post Type, and how you want it to behave, and display.
This option decides whether the post type can have parent-child relationships.
Whether posts of this type should be shown in the admin UI and is publicly queryable.
- Show UI
Whether to generate a default UI for managing this post type.
- Show in Menu
Whether to show the post type in the admin menu and where to show that menu.
- Menu Position
The position in the menu order the post type should appear. show_in_menu must be true.
- Show in Nav Menus
Whether this post type is available for selection in navigation menus.
- Show In Admin Bar
Makes this post type available via the admin bar.
- Can Export
Whether to allow this post type to be exported.
- Has Archive
Whether the post type will have a post type archive URL.
- Exclude From Search
Whether to exclude posts with this post type from front-end search results.
- Publicly Queryable
Whether queries can be performed on the front end as part of parse_request()
- Query Var
Sets the query_var key for this post type.
Whether WordPress should use rewrites for this post type.
- Rewrite With Front
Should the permalink structure be prepended with the front base?
- Show in REST API
Whether to show this post-type data in the WP REST API.
You can link your Post Types ( CPT ) with Taxonomies and Custom Fields.