[Resolved] I'm meeting two issues in displaying a list of posts on a map block
This support ticket is created 3 years, 1 month 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.
Hi there,
I built a page to display in a map block a list of items who belong to a custom post type named "medici"
Following the course lesson named "Displaying a List of Posts on A Map in WordPress", I added a view block with custom search fields and a map block who show the locations of the single records in the view
In this process I'm meeting two issues:
1) when I select one of the filters, the single posts aren't filtered, the marker on the map disappears and the map is centered on Guinea gulf continent instead of Italian cities
2) if I press the reset button of the view search section, all the custom search fields turns unavailable
Could you please assist me to find a solution?
Thanks
I'm returning to look at the issue in your other ticket this morning.
For this issue I think it would help if we could look at your site to see how you have this set up, if that's okay.
I will mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.
Can you also confirm the page where we can see the problem.
I'm encountering some unexpected issues when I try to make some changes to the View on that page, and I'd like to take a copy of the site to do some more testing locally.
I still had problems wth the locally installed copy of the site, including after disabling all non-Toolset plugins and switching theme to twentytwentyone. The problems specifically seemed to relate to ajax operations rather than when reloading the page.
In any case, it wasn't clear what the source of the issue was, so I tried rebuilding the page from scratch with a new View and Map block, and the new page worked as expected.
So I've done the same on your own site.
I did run into some more problems initially (editing the page had multiple JS errors relating to the Google Maps API, see screenshot), and I resolved that by changing the Divi settings so that it did not look the scripts for the maps API (which is being done by Toolset).
After that it works correctly, if you could please verify the same.
I'm afraid you will need to update the page to style it according to your needs, translate the text as described previously etc., but thankfully it is functioning correctly.