Would it be completely illogical to have product and price as separate CPTs?

[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]
4 Comments
  1. It would be more than illogical, especially because many-to-many relationship is not natively supported by WordPress.

  2. I’ve seen worse usage of CPT’s.

    It’s what post meta fields are for, querying with either wp_query or $wpdb.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer