Passer la navigation

[En attente du retour de l'utilisateur] view display posts after filtering

This support ticket is created Il y a 4 days, 2 hours. 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
- 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 4 réponses, a 1 voix.

Dernière mise à jour par Minesh Il y a 1 day, 6 hours.

Assisté par: Minesh.

Auteur
Publications
#2861977

Op lien caché
There is a view containing therapist data, so users can search for one in their area. I would like to show all of them on the map at once, but not all of them listed below the map, because that made the website very slow.

How can I achieve this? I already tried a few things with ClaudeAI, but now they are no longer loading at all, not even after applying a filter.

[wpv-conditional if="( '[wpv-attribute name='url_param' item='toolset_maps_distance_center']' ne '' ) OR ( '[wpv-attribute name='url_param' item='wpv-wpcf-voornaam']' ne '' )"]
<div class="kader">
<h3>lien caché</h3>
[wpv-conditional if="( $(wpcf-site) gt '0' )"]lien caché[/wpv-conditional]<br />
[types field="straatnaam"][/types]<br />
[types field="postcode"][/types] [types field="stad"][/types]
</div>
[/wpv-conditional]

#2861981

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

When I checked the page you shared: lien caché

I can see that few markers on map.

As I understand - on first page load, you want to dispaly all the markers on the map and then when user filter it it should display the markers according to search query. Is that correct? If yes:

Can you please share admin access details and tell me what view you created. You can revert the changes you made using AI and then send me access details.

*** 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.

#2862271

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

I can see the page here: lien caché

It seems you are displaying all the posts. And your requirement is you want to display all the markers on the map but least posts. How many posts you want to disply? 10-15 on first page load?

#2862284

Hi Minesh,

All posts are currently displayed on the map. That already works perfectly, and I would like to keep it that way.

However, at the moment all posts are also displayed below the map. Because there are so many posts, the page loads slowly.

Ideally, I would like the posts below the map to be hidden initially and only appear after filtering. For example, if I search for “Middelburg (Netherlands)”, the map should show 12 posts and the same 12 post cards should appear below the map. (div kader)

#2862286

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Do you want pagination?

You will require a "Search" button and the view's Custom Search setting "Full page refresh when visitors click on the search button" - is that Ok for you?