Skip Navigation

[Resolved] Post relationship not working properly

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by Christian Cox 4 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1449379

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

#1449547

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?

#1450435
Schermafbeelding 2020-01-10 om 10.49.08.png
Schermafbeelding 2020-01-10 om 10.49.42.png
Schermafbeelding 2020-01-10 om 10.47.51.png

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?

#1450479

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?

#1456121

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.