[ad_1]
_For context, this is for a price comparison between stores, NOT an eCommerce site._
If I wanted to be able to search price and product independently, Is it worth having separate CPTs?
I realised that the logic would be to have price as part of the product, but I just wonder if it would be easier to sort them and search them?
(There won’t be that many products and prices maybe 300-400 at most, and once I set up the CPTs I will import some of this data via custom CSV)
Thank you.
[ad_2]
Certainly sounds illogical to me.
Use one content type and sort by field
It would be more than illogical, especially because many-to-many relationship is not natively supported by WordPress.
I’ve seen worse usage of CPT’s.
It’s what post meta fields are for, querying with either wp_query or $wpdb.