I am currently facing an issue with the implementation of pagination in conjunction with the view loop, search, and map functions on a specific page.
The problem arises when I add the pagination feature into the loop. It seems that the map function displays only the pagination data for the current page. I am seeking a solution to enable the display of all search results on the page, with pagination specifically applied to the search results.
SS 1: hidden link
SS 2: hidden link
To elaborate, I would like the following scenarios to be addressed:
1. When the page loads for the first time: All posts should be displayed in the map, and the loop should has pagination.(when pagination change map does not need update)
2. During a search or filter operation: All filtered posts should be shown in the map, and the loop should be updated to reflect the filtered posts with appropriate pagination.
Is there a recommended approach or solution to achieve this functionality? Your assistance in resolving this matter would be greatly appreciated.
Hello. Thank you for contacting the Toolset support.
Can you please tell me - are you using block view or classic view?
If you can share problem URL and admin access details. Once I review your current setup I will be able to guide you in the right direction.
*** 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.
I've created the following view - you can adjust the details for map marker like marker_title, popup content as required and you can also set other map options as required:
- hidden link
Where:
- I've added map and marker (you can change the options for map and marker as required)
- I've added the query filters based on your custom search filter view "Dayanışma Haritası Map":
Post search filter
Filter post content and title by a text search that will be added manually using the shortcode [wpv-filter-search-box].
Taxonomy filter
Select posts with taxonomy:
Kurum Türleri slug in one of those set by the URL parameter wpv-kurum-turu
eg. hidden link
AND
Destek Türleri slug in one of those set by the URL parameter wpv-destek-turu
eg. hidden link
AND
Destek İlleri slug in one of those set by the URL parameter wpv-destek-il
eg. hidden link
You can see now on your page: hidden link
I've added the map below and change the view "Custom Search" setting to "Full page refresh when clicking Submit":
- hidden link
As you can see now - when map loads the first time - it shows all results and when you apply the filter the map does display the results based on selected filters: