Wordpress (with plugin for Custom Fields stored at DB Custom table like Pods/MetaBox/JetEngine/etc)
Logic:
- Custom Post Type (CPT) witch data will be stored at database Custom Table.
- Custom Taxonomy with Custom Terms.
- Adding to CPT Metabox Custom Fields with possibility to multi-choose of #2.
Example:
- CPT "Cars".
- Custom Taxonomy "Material" with Terms: "Metal, Plastic, Rubber".
- On CPT "Cars" a new post "Audi" creating there are appear a list of Custom Fields, for example field "Material" with values taken from Taxonomy "Material". User can choose 1 like "Metal" or many Terms at once like "Metal, Rubber" etc.
Question: How is better to store chosen Terms ID's at Database? But, please, take into account, that this "relationship" type is ONLY 1-side (DON'T need to choose CPT at Taxonomies!). I see next options:
A) Store at #1 database Custom CPT table at column like "materials_ids" all chosen ID's as comma separated text. But then is the question - which database column type is better for such purpose (varchar/tinytext/etc)? B) Or for such case the better DB design to create a new relationships table? But does it really needs for only 1-side relationship?!
What pros/cons between A/B methods for DB, WP, data using, searching, etc?