Skip Navigation

[Resolved] Many->Many view not working

This support ticket is created 4 years, 6 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Griffin 4 years, 6 months ago.

Assisted by: Waqar.

Author
Posts
#1609127
Screen Shot 2020-05-02 at 1.02.38 PM.png
Screen Shot 2020-05-02 at 1.00.42 PM.png

Tell us what you are trying to do? Display all the stores that sell a product

Is there any documentation that you are following? https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/

Is there a similar example that we can see?

What is the link to your site? It's not live

Your documentation seems to be lacking. I created the M:M and am creating a view to display the intermediary data. As you can see, there is a filter set. But I can't get the data to display correctly since I can't choose that data.

#1610217

Hi,

Thank you for contacting us and I'd be happy to assist.

From the screenshots, I understand that your view is set to show "Products Stores" intermediary post type.

The option "Products Stores Intermediary Posts" is disabled in the "Post Selection" screen as the current scope of the view is already set to that post.

If you'd like to show data from the current "Products Stores" intermediary post in the loop, you'll simply select the first default option "The current post being viewed either directly or in a View loop".
( screenshot: hidden link )

If you'd like to show data from the related "Products" or "Stores" post, then you'll select the respective post type's option.
( screenshot: hidden link )

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1611483
products stores.png
post selection.png
front end.png

Nope, that doesn't work.
As you can see, I'm picking data from the intermediary post. It repeats all values.

#1612367

Hi,

Thank you for sharing the update and this is indeed strange.

Can you please share temporary admin login details along with the link to a page where this view can be seen?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#1613695

Hi,

Thank you for sharing the admin access.

During troubleshooting, I noticed two adjustments were needed in the view "Stores carrying products view":

1. The "Products Stores Intermediary Posts" and "Stores", both posts were selected in the "Content Selection" settings, when the goal is only to show the related Intermediary Posts.

Screenshot: hidden link

2. In the "Query Filter" settings, the items related to a specific post was selected, when the option "The post where this View is shown" should be selected.

Screenshot: hidden link

You'll note that this view is now showing the data correctly on the single product pages.

regards,
Waqar

#1613905

My issue is resolved now. Thank you!