Skip Navigation

[Resolved] Displaying multiple Parent's addresses on a map using a child view

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.

This topic contains 16 replies, has 3 voices.

Last updated by Jamal 1 month, 2 weeks ago.

Assigned support staff: Jamal.

Author
Posts
#1717539

I have 2 custom post types: Rallies and Parks. A park is the parent of a rally in a 1 to many relationship. The rally is located at the parent Park's address. I am trying to map multiple rallies using the parent's address.

I followed the documentation located here: https://toolset.com/lesson-placement/lesson-placements-1622939-1620853. However, the map does not show the rally locations.

There is no similar example.

What is the link to your site? : hidden link and specifically rvrally.net/home showing the problem.

#1718013

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello and thank you for contacting the Toolset support.

Would you allow me temporary access to check this closely? Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

I understood that the map in hidden link should display 7 markers corresponding to the view's results, right?

#1724299

Yes.

#1726971

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Jamal is on vacation. This is Minesh here and I will handle take care of this ticket. Hope this is OK.

First of all, when I login to your site I found that you are using Beta version for all Toolset plugins. We always recommend running your site with the latest stable release plugin version.

We do not recommend to use Beta version on production sites.

*** Please make a FULL BACKUP of your database and website.***
If you agree - I can remove the beta version and install the latest stable Toolset plugins and integrate the map. Please let me know.

#1727593

Full Backup complete.

Please have at it.

Gary

#1728255

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please confirm that I can install the latest stable version of Toolset plugins on your install: hidden link

#1728413

Yes please.

Make any changes/updates you consider necessary.

Gary

#1729435

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Again - Before I run the update - is the site you shared is your production site? hidden link

If yes - I recommend to share the test site as we do not recommend testing and troubleshooting on production/live sites.

I hope you already have backup the site if it's a production site.

It is always good to confirm before I take next step as its not good to broke production sites.

#1729725

It is a production site - I do have a full backup.

#1730231

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok great but as per our support policy we do not recommend to test/debug on production site.

It will be great if you can provide testing site where I can play and troubleshoot the issue further. I hope this makes sense.

I have set the next reply to private which means only you and I have access to it.

#1731153

Please use this site. I am using it initially as a test site.

#1734213

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello, Minesh is on vacation so, I'll continue with you on this ticket.

I was able to login to your website and to view the test page hidden link
From what I gathered so far, the view is configured to display "Parks", check this screenshot hidden link

I understand that you want to display the Rallies based on a parent park, right?

Do you want to display this on the test page, and filter by Parks? If, yes, you will have to configure the view to display Rallies, then you will need to add a filter on the view on the relationship to Parks. Let me know if that's the case.

Do you want to display the map on each park's page? If yes, the view needs to be filtered on the relationship, based on the page where the view is used.

Please let me know what are trying to build?
I am still confused about your sentence I am trying to map multiple rallies using the parent's address. please elaborate more and I'll do my best to help.

#1735145

Jamal,

I tried to simplify. If you go to the "Search Rallies" page, you will find that I have a rallies view and attempt to filter by the parent's (park) rating. It does not work.

Gary

#1735147

For instance, when I preview the "Search Rallies" page and enter "4" for the park rating - I get "no items found".

#1735845

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Thank you Gary for your feedback, but I am really sorry, I still don't understand what you try to get, especially, because we work on different users' websites and we can't keep track of each context.

By following the "Search Rallies" page, the view queries Rallies, but tries to filter by a custom field(rating) on the parent custom post type(Parks). This is not possible in Toolset, we can't filter a custom post type by fields on a related custom post type.

If you would like to display the Rallies from Parks that have rating 4, you will need to create a view to query Parks based on the rating, then you can use a nested view inside its loop. The nested view needs to be filtered by the relationship to the current post in the loop.

This being said, I would like to agree with you on what are the expected results. A simple way to explain it is by giving the step-by-step procedure that you want to have:
- Got to page with URL...
- Enter value xxx in field yyy.
- I expect to get posts aa, bb, cc, etc.
- Instead, I got posts zz, tt, etc.

I would also like to ask, what map you want to use, and what posts you want to put on it?