Skip Navigation

[Resolved] Show loop results only after click while displaying markers on the map

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

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.

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 sachaB 5 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1155651
Schermata 2018-11-29 alle 13.11.16.png
Adjusters_–_VRS_Adjusters.png

Tell us what you are trying to do?
I am trying to show all the markers for a CPT on a map while not loading all the CPT results beneath it in order to avoid loading all the content.
Is it possible to use one of the filters as a trigger? Maybe executing custom javascript functions before and after the View results are updated ()

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
hidden link

Thanks in advance

#1156055

Hello,

There is a workaround, you try displaying the search form and search result in different pages, for example:

1) Create a post view A with custom search form, display the search result + google map, just like your existed view.

2) Create another post view B, without custom search form, only display the google map with all markers.

3) Create a page, display the custom search form of post view A and post view B(all markers), after user submit the form, redirect them to below search result page.

4) Search result page, display the post view A, with search form + search result + google map

See our document:
https://toolset.com/documentation/user-guides/front-page-filters/#4-1-adding-the-custom-search-form-to-a-page-or-widget

section "Adding the custom search form to a page or widget",
screenshot:
hidden link

#1163892

Hello Luo,

I have tried what you have mentioned. I think I am almost there. Need to play more around it.
Thaks