I have custom post types product. I want to create related products from same custom post type (product). The user should be able to select posts (products) just as a user selects a category(or more) for the product to be related to)
I think I could create code for that by storing custom values in post_meta table.
Example: In DB I have:
Product1 Product2 Product3 Product4 Product5 Product6 Product7 I edit Product4 and I just want to say that Product1 and Product7 is related to Product4. I could then store product product4_1 with value 1, product4_7 with value 1 in postmeta-table.
I think I'm missing something that really matters here, but can't figure out what. (I see that giving names product4_1 and product4_7 might be problematic).
Not looking for solution, just some guidance to point me in right direction...