Thank you, guys, for your replies!
But you don’t understand what I want to do.
I’d like to create only 2 different taxonomies: car and truck (for the first time). And create a hierarchical structure in every brand. For example:
Catalog
-Cars
— Alfa Romeo
— Alfa Romeo Giulia
—- …
—- …
— Alfa Romeo Brera
— Audi
— BMW
-Trucks
— Alfa Romeo
— Alfa Romeo 1
— Alfa Romeo 2
—- …
—- …
— Audi
— BMW
add_action( 'init', 'register_taxonomies', 0 );
function register_taxonomies(){
register_taxonomy ('car', 'post',
array (
'hierarchical'=>false,
'label'=>'Cars',
'query_var'=>true,
'rewrite'=>true
)
);
register_taxonomy ('truck', 'post',
array (
'hierarchical'=>false,
'label'=>'Trucks',
'query_var'=>true,
'rewrite'=>true
)
);
}
Alfa Romeo, Audi, BMW and other brands are Categories.
But I don’t know, how to create such structure without duplicating brands (they will relate to different taxonomies and it means I have to duplicate brands because “track Audi” and “car Audi” are different. In the beginning, I wanted to use pages, but it is not possible to set multiple parent pages for one page. And now I want to use categories, but I can’t get rid of duplication because I have some brands which are different types of vehicles.