Skip Navigation

[Resolved] How to show the many to many relationship data on the map

This thread is resolved. Here is a description of the problem and solution.

This support ticket is created 3 years 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
- 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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by chelhwanS 2 years, 12 months ago.

Assisted by: Luo Yang.

Author
Posts
#2253973

Tell us what you are trying to do?

I am preparing a service that guides consumers to pharmacies where they can purchase products.

When a consumer selects a product, it shows a pharmacy with the product on a map. And although there are no products in other indications, I would like to inform you of the location of the pharmacy where consumers can visit the pharmacy and ask the pharmacist to order the product.

We connected the pharmacy and the goods (wooocommerce) to a many to many relationship.
There was a content that it could not be made with gutenberg edtor, so I tried to make it a legacy editor.

I am not familiar with the legacy editor, so I am not making the results properly.
The current site is a development site. I left only what I needed to get help.

I also backed up.

Is there any documentation that you are following?
Is there a similar example that we can see?

What is the link to your site?
neture.co.kr

#2253983

Hello,

I suggest you try these:
1) Setup a custom address field in post type "pharmacies",
2) In the single product (wooocommerce) post, you can display a View block:
- Query pharmacies posts
- Filter by post type relationship between products and pharmacies
https://toolset.com/course-lesson/displaying-related-posts/#displaying-many-related-items
And follow our document to display the maps:
https://toolset.com/course-lesson/displaying-a-list-of-posts-on-a-map/

#2255113

I asked for help because the results didn't come out even though I made it many times.

I tried again, and the map looks fine.

My issue is resolved now. Thank you!