Skip Navigation

[Assigned] Displaying all repeatable Event locations on a single map (Legacy Views + RFG)

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 5 replies, has 1 voice.

Last updated by Alok Sharma 5 hours, 6 minutes ago.

Assisted by: Minesh.

Author
Posts
#2842575

Hello Toolset Support Team,

Tell us what you are trying to do?

I have an Events custom post type.
Each Event can have multiple locations, stored inside a Repeatable Field Group (RFG) created using Toolset Types.

The RFG fields are:

Location Name (location-name) – text
Location (location) – Address field (Toolset Maps)
Location Notes (location-notes) – textarea

---

What I want to achieve is:

Display all locations from all Events on a single map

Each row of the Locations RFG should appear as a separate map marker
This should be global (i.e. not tied to a single Event page)

Marker popup content

Location Name
Location (address)
A link like “View all events at this location”
This can either open a filtered Events list below the map or go to a new page

Optional search
Ability to search locations by Location Name or Address

I am currently using Legacy Views and Toolset Maps.

The problem I am running into is that Views return no results when trying to display locations globally.
It appears that Views always expect a post context (owner), and there doesn’t seem to be a clean, documented way to query all RFG rows across all parent posts in a single View.

At the moment, it feels like there is no logical way to display locations independently of querying Events, even though the map markers conceptually belong to the RFG rows rather than the Events themselves.

---

Is there any documentation that you are following?

Yes, I have followed this lesson:
https://toolset.com/course-lesson/displaying-a-list-of-posts-on-a-map/

However, this documentation assumes:
A single Address field per post
It does not cover:
Address fields stored inside a Repeatable Field Group
Displaying multiple locations per post
Displaying all RFG locations globally on one map

I could not find official documentation that explains how to handle Toolset Maps with RFG-based address fields in a global context.

---

Is there a similar example that we can see?

I do not have a working public example yet, because the Views are returning no results.

Conceptually, the desired output would be:
One map
Markers created from each RFG row
Marker popup shows RFG field values
Clicking the popup link shows all Events associated with that location

If Toolset has an internal or demo example of:

Maps + Repeatable Field Groups
Or querying RFG rows across multiple posts

that would be extremely helpful.

---

What is the link to your site?

I can provide the site URL privately if needed.

Please let me know if you also need:
Screenshots of the View settings
Field group configuration
Or a temporary login for debugging

Thank you for your time. I’m happy to adjust the data model if there is a Toolset-preferred approach—I just want to make sure I’m not fighting the system or relying on unsupported behavior.

Best regards,
Alok Sharma

#2842677

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Based on the description you share, it will be great if you can share problem URL and admin access details that will help me to review your current structure and I could help to prepare demo with your actual content.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

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

#2842703

Minesh
Supporter

Languages: English (English )

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

I checked on your install and there must be something wrong as I tried couple of ways but I was not able to display the map marker on your site.

Then I checked with the sandbox site I've created and its works without any issues with both Google Map or OpenStreetMaps.

Here is a sandbox site and you can auto-login to it using the following link:
- hidden link

Map seetting set to use OpenStreet Map API:
- hidden link

Created Custom field group for Book post type where I've added repeating field group that has map address field:
- hidden link

Then, I've created view that query the "Book Location" repeating field group and display the map:
- hidden link

And display the above view with the following page and I can see it works without any issue:
- hidden link

However, as I acknoledged it does not work on your install.

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?

Alternatively, you can try to check with different host/server with fresh WordPress installation and check if you able to make it working.

#2842751

Hello,

Thanks again for the sandbox setup and the troubleshooting directions.

I wanted to update you: I was able to debug why map markers were not showing on my installation. After deactivating plugins one by one, the conflict turned out to be Slim SEO. When Slim SEO is disabled, the markers display correctly on my site.

I’m not sure why an SEO plugin would interfere with marker rendering, but I’ll take that up with the Slim SEO developer. For now, I have kept Slim SEO disabled so I can continue development on the Toolset side.

Now that the markers are displaying, the only remaining requirement is:

Marker popup link → show all Events for that location (on a new page)

For each marker popup (each RFG location row), I want to show:

Location Name
Location (address)
a link like “View all events at this location”

Because this could eventually be hundreds or thousands of Events, I prefer that clicking the link opens a separate results page (with pagination), rather than loading results below the map.

So the key question is:

Can Toolset filter an Events View (on a separate page) by a value stored inside a Repeatable Field Group row (e.g., location-name or location), in a supported way?

If filtering by RFG fields is not supported/reliable, what would you consider the best-practice Toolset approach for this “marker → all related Events” use case, while keeping results on a separate page with pagination?

Sync to a taxonomy term on save?
Use a Location CPT + relationship?
Something else you recommend?

Once I know the preferred approach, I can implement the “View all events” link in the marker popup accordingly.

Best regards,
Alok Sharma

#2842821

Minesh
Supporter

Languages: English (English )

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

I set the marker popup but I would like to know do you want to show on different page posts filter by location-name custom field or location custom field?

As I can see with few location-name custom field the value is empty.

#2842861

Hello,

Thanks for sharing the working setup — the output looks good, and I can see that the desired behaviour on the map has been achieved 👍
To keep the overall architecture as simple and robust as possible, I’d like to clarify one last aspect before locking things in.

To avoid confusion over time (old vs new names, renamed locations, corrected addresses, etc.), I’m trying to rely on a stable, immutable identifier for each location that can be used consistently for filtering Events.

Before introducing additional layers (like manual keys or extra syncing logic), I wanted to ask:

Does Toolset already store or expose any unique identifier per location / marker that can be safely used for filtering?

For example:
latitude + longitude pair,
a generated internal ID tied to the address field,
or any other unique value Toolset considers canonical for a map location.

If such a value exists and is stable:

it would simplify the setup significantly,
ensure that even if the location name or address text changes, the Events associated with that location remain correctly linked,
and reduce the risk of duplicate or fragmented locations.

If Toolset does not provide a reliable built-in unique identifier for locations, then I’m happy to proceed with a taxonomy-based approach using a fixed slug or key — I just wanted to confirm first whether Toolset already offers something suitable out of the box.

Looking forward to your guidance on this, and thanks again for getting the core map functionality working.

Best regards,
Alok Sharma