Skip Navigation

[Resolved] Items are only shown on map after I use a filter

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

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 4 replies, has 2 voices.

Last updated by Waqar 5 years, 8 months ago.

Assisted by: Waqar.

Author
Posts
#1208753
reality.png

I am trying to:
Show the custom types with an address on a map.

Link to a page where the issue can be seen:
hidden link

I expected to see:
All adaptions displayed on the map by default, without having to activate a filter.
I created it on a staging site, but I cannot replicate it again on my new website:
hidden link

Instead, I got:
An empty map centred on Africa.

#1209205
#1209530

Hi Oliver,

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

I've checked your view "Adoption Search Results" ( hidden link ) and noticed that it is showing the markers correctly when inserted directly on a page, without Elementor page builder.
( example page: hidden link )

I noticed that your web site's theme (Astra), Toolset and Elementor plugins are not updated to the latest versions.

Please make sure all these are up-to-date and then check the view again for the markers.

Note: In your view's content template the "marker_id" is set to "marker-3" ( screenshot: hidden link ). This should be unique for every result item, so it would be better to change it to include post ID "marker-[wpv-post-id]" so that it stays unique.


[wpv-map-marker map_id='adoption-map' marker_id='marker-[wpv-post-id]' marker_field='wpcf-shelter-location'][/wpv-map-marker]

Please let me know how it goes after theme and plugins have been updated to the latest versions.

regards,
Waqar

#1212677
empty-map-even-though-search-results-found.png
weird-0-bug-when-going-back-after-filter.png

Dear,

I have updated all the themes and plugins, and I've change the map-ID like your example code but the issue still persists:

1) The map is still empty by default in the elementor embed page, the results are found but I need to filter before they show on the map.

2) When inserted directly on a page the results are shown correctly on the map but another issue presents itself. When you filter the results and open one of the individual custom post types and go back to the map, the page is empty it only the number "0" appears in the upper left corner.

I have recored this video to show you both errors:

hidden link

As well as 2 screenshots

#1212700

This bug also happens when a filter is selected and the page is refreshed. It will return "0"

#1213278

Hi Olivier,

Thank you for waiting, while I investigated your report.

Issue 1:
Your website seems to have two views, with a map:

a). Adoption Search Results:
hidden link

It is set to show on two pages and the map markers are showing correctly on both:

hidden link
hidden link

b). All Adoptions View:
hidden link

It is set to show on a single page:
hidden link

But this view doesn't include the "wpv-map-marker" shortcode ( ref: https://toolset.com/documentation/user-guides/maps-shortcodes/#wpv-map-marker ), which is why no marker is shown on the map.

Issue 2:
During testing on my website, I couldn't reproduce this issue, with the same theme and settings. The issue seems to be specific to your website only and the "/wp-admin/admin-ajax.php" part is incorrectly being included in the URL when a search filter is changed.

Would it be possible for you to share a clone or snapshot of your website with us?
(it can be from this website or from another test website where the issue is reproducible)

We usually recommend the free Plugin “Duplicator” (http://wordpress.org/plugins/duplicator/) for this purpose.

If you already know how Duplicator works, you can skip the instruction video and just send me the installer file and the zipped package you downloaded.

Duplicator Instructions:
hidden link

( note: I'll need both files and you'll probably want to use DropBox, Google Drive, or similar services, as the snapshot file will be quite big )

IMPORTANT: Remember to create or keep an admin account for me before creating the snapshot, or I won’t be able to log in. You may delete the new admin account once the snapshot has been built.

I will set your next answer as private so you can provide me the information securely.

regards,
Waqar