I hope the image I'm posting help you understand what I'm trying to do.
I need to have a custom post type that will hold ads for selling stuff.
I will need to use the custom categories to filter results in many parts of the site. And will have to combine categories at some points.
Every sub-cat (bikes, accessories, vestuary and components) will have specific types, models and size. But they will also have brand and gender that are no specific to each one. That means that one brand can have products in bikes and vestuary. Same thing with gender, yuo can have a female bike model or a female accessory.
Now... On the page where the user will insert the ad, he will select some categories (with a HTML 'select'), therefore, I can't 'clog' all categories inside each other. Like we normally do:
Categories
- Bikes
- Types
- Type A
- Type B
- Type C
- Models
- Model A
- Model B
- Model C
- Size
- Accessories
- Types
- Type D
- Type F
- Type G
- Models
- Model D
- Model F
- Model G
- Size
- Vestuary
- Types
- Type H
- Type I
- Type J
- Models
- Model H
- Model I
- Model J
- Size
- Components
- Types
- Type K
- Type L
- Type M
- Models
- Model K
- Model L
- Model M
- Size
I can't seem to find a clean way of solving this. Do you guys have any idea?
Making custom taxonomy for every thing will make the admin a mess... And probably will cause a lot of confusion when the time comes to make the various and combine them to filter results.
I need to show to the user 4 for the following:
- Categories
- Types
- Models
- Size
Each subsequent will activate and show items that are conected with the previously selected one.
Ex.: I select 'bikes', and the next (for 'types'), will show the available types that are child of 'bikes'. And after selecting a type, the next (the 'models' one), will show the models, inside that selected type. And so on.
I need to find a way to show that correctly to the user. And the correct form to save it on the DB so I can filter it later.
Here is an image to 'illustrate' the structure I have: