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
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
Hello Luo,
I have tried what you have mentioned. I think I am almost there. Need to play more around it.
Thaks