WordPress doesn’t support nested post types, though you can created hierarchical types similar to the Core “Page” type. However, what you are describing, including this sample “POST+CATEGORY+SUBCATEOGRY” is a custom taxonomy for your Car post type. The Codex has examples, but you would need something like this (roughly, I am sure this needs tweaked):
add_action( 'init', 'create_book_tax' );
function create_book_tax() {
register_taxonomy(
'make',
'cars',
array(
'label' => __( 'Make' ),
'rewrite' => array( 'slug' => 'make' ),
'hierarchical' => true,
)
);
}
https://codex.wordpress.org/Function_Reference/register_taxonomy#Example
Related Posts:
- Get post with multiple meta keys and value
- Get posts for custom post type with WP_Query
- Custom Post Type Data in Sidebar widgets?
- Custom Post Type Permalink / Rewrite not working immediately
- How to add custom content template part for a custom post type on main query using a plugin
- Custom Post type in separate database table for syncing
- Why would WordPress use ‘attachment’ in a custom post type’s query string?
- Unregister post type from child theme
- Custom Post Type With Different Views
- How to get term link that crosses different custom post types?
- Custom post type Admin Page
- Enforcing canonical URLs with multiple custom post types
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- Set post title from two meta fields
- Where to put archive-{post-type}.php
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- Correct way to use a form to to filter custom posts by taxonomy terms?
- Using Custom Templates for Custom Post Types for the Genesis Theme Framework?
- WordPress custom post type category pagination 404 Error
- Custom-Taxonomy as categories: Remove “most-used” tab?
- Custom Permalinks for Custom Post Types and Taxonomies
- Custom Taxonomy order by Custom Field
- Custom post types – non-visible title and how it affects URL
- Limit search form to 4 custom post types only
- How can I include meta box content when searching?
- “More” span making trouble
- Single Post Pages for Custom Post Types
- Get all posts WHERE custom_field is LIKE value
- Show ACF field from custom taxonomy and display on the single template
- Add Content Exclusively to a Custom Post Type Feed
- How to rename image at uploading on specific plugin or post-type in WordPress
- Loop on front-page.php
- How to insert multiple images into a single post within a CPT
- Create custom post type on successful woocommerce order [closed]
- How to create a json API for my custom post type
- Display custom post type in hierarchical order with get_terms
- the_title filter returning wrong post type
- Parent field missing from custom post type in the block editor
- Am unable to reset a query properly
- Creating a navigation menu of all posts of a custom post type and their children posts?
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- allow BOTH post slug and meta key value in permalink for custom post type
- Filter custom posts using auto populated dropdown selectors
- A simple script to allow sorting of custom posts in admin?
- Is it possible to create relational metabox values in a custom post?
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- Display Custom Toxonomy In WordPress and theme Widgets category selection dropdown list
- URL rewrite add author as base
- filter custom post in rest api with custom function
- Update database from Quick Edit according to Checkbox state of Custom Post Type
- Custom Post Type slug same as page name
- manage_edit-{post_type}_sortable_columns sorts, but wrong!
- Custom Post Type Pagination Paginates Only in URL Structure
- Convert comments to Custom Post Type
- Is there any way to add a “custom field” to the CPT archive page?
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Post to Top in Array
- Detect inside a custom query the kind of post type to assign custom classes
- Check if post with same meta value exists
- previous_post_link in same taxonomy in custom post type
- How do I create a new post upon registration with the users first and last name as title
- Dynamic pages for linked categories and content
- How do I replace the post title with a custom field?
- How can I make custom static widgets/areas on my homepage?
- Custom Taxonomy dont save in a frontend form for post a custom post
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- Page template that uses lightbox to display post images
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Get the taxonomy value in the post loop inside the archive page
- Custom post type archive URLs with a single taxonomy
- Custom Post Type and Structure Question
- How to get rewrited name of cusom taxonomy?
- How to access repeater field of a custom field?
- Change CPT permalink to use the category
- Custom Post Type 404 Error even after flushing rewrite rules
- Custom post types & Pages hierarchy – Error 404
- custom post type section selector
- Update/publish custom post type with jQuery?
- Custom Post Type slug and WPML gets 404 error
- Previous/Next custom post links within custom taxonomy
- Custom post type: “transition_post_status” action get title and other fields
- wp_dropdown_pages doesn’t allow me to select more than one custom post type
- Override “Parent” input for custom taxonomy
- How to develop custom URL redirection
- Custom post type with Filter and Page Nav
- Custom Post Type Archive Links Not Working
- Custom Post Type Categories Not Maintaining URL structure any more
- Why is this custom post type defaulting to archive.php?
- Custom Post Types and Child Themes!
- Custom post types permalinks not working
- How do I ensure custom post type information is displayed in correct order?
- Tag-post relationship problem
- Rewrite rules for using the same base slug for multiple content types
- Custom Post type as Taxonomy
- Getting 404.php instead of single-.php [duplicate]
- How to manage wordpress knowledge base/wiki/posts collections
- add_rewrite_rule not working in Custom Post Type UI Plugin
- I want to understand plugin implementation of custom posts / taxonomies / metaboxes
- Issue displaying multiple TinyMCE editors with WPAlchemy
- using jetbooking for multiple custom post types