Hi Toolset,
I'm trying to show products from Woocommerce on a another post type with post relationships but the posts are not showing.
Can you help me?
Thanks,
Menno
Sure, can you tell me more about this?
- What type of post relationship is set up, what other post type is involved, and which is the parent and which is the child in the post relationship?
I assume you have already created a View of Products.
- Can you show me how you have configured the Post relationship filter?
- Can you show me the loop code for this View?
- Can you show me how you are displaying this View in the other post type?
Hi Christian,
Thanks for your response. I'm building a price compare site i would like to show multiple products on a item page with a post relationship of the EAN number. So i have a one to many relationship where 1 EAN number may have multiple products. Each product has a custom sku 'merchantid-productid' and the EAN number in the post relationship field.
I've included some screenshots. I don't know what i'm doing wrong here... I'm using WPML, maybe this gives some issues?
Omg, i had all products on visibility hidden to prevent them showing up in the Woo catalog, because i only wanted to show them into my other post type. That's why they were not visible... Is there a way to overrule this setting in a View?
Are you using Catalog Visibility "hidden"? If so, then these Products should appear in a View of related Products on some other post type without any problem. You should not have to make any Query Filter changes, so I'm not sure I understand the problem. Could I log in to wp-admin to see how this is set up? Let me know where I can find the related Products View on the front-end of the site.