Reputation: 2736
I'm building a car services database. Each car service is able to repair multiple models of cars.
What is the best way to store the relation between car services and types, to be able to later query that?
My options are:
post_meta
as separate records (not an array) and use the Meta Query
.custom taxonomy
and use Tax Query
custom relational table
and modify the where
and join
clauses of WP QueryI'll have cca 3000 car services, each service might have cca 20 models selected.
What's the preffered way? Any help appreciated.
Upvotes: 0
Views: 256
Reputation: 1013
Depends on what additional information do you need for car models.
If you'll be using this only as a filter (or searching) use custom hierarchical taxonomy with top terms being car makers and models as be their children.
Upvotes: 1