Skip Navigation

[Resolved] Issue with Pagination in View Loop and Map Function on Page

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by Minesh 1 year, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2679320

Hello,

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.

Thank you.

#2679431

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#2679629

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You will have to use classic views in order to get more flexibility in such cases.

Can I setup a demo on your site - is that ok as it seems your production site?

#2679683

Hello, yes you can create a demo page. How can I fix my problem with classic view? Can I show all posts in map when I use pagination feature?

#2679794

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You can enable the legacy view by following the steps given with the following Doc which I already did:
- https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/

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:

Can you please confirm it works as expected.

#2680356

Hello Minesh, thank you so much for your help and time. I updated my map view like old one and it works perfectly. Thank you, Minesh!