custom post types containing a collection of items
I think you’ve got the Custom Post Type a bit wrong, the products are not saved in products table but in the posts table prefix_posts(post_id,title,content,… So to use the options in relation to post_id you can use the build-in custom fields which are key/value pairs. The key is the name of the meta-data element. The … Read more