This support ticket is created hace 7 años, 3 meses. 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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
I have a Views that display products with a filter based on some parameters.
As I have lots of products, so I have chosen the 12 per page display.
I have also integrated the Google map (the map shortcode in the Loop Output Editor and the marker shortcode in the content).
Now, the issue is that only the displayed products are placed in the Map. For example, if I'm on the first page, only the 12 first products are placed onthe map. If I click on the 5th page, then only the products belonging to this page will be placed on the map.
I would like to have the whole selected products (thanks to the filter) placed on the map, independently of the page number.
Actually this isn't possible since the map is being fed the current information that is being displayed. The rest of the information is not fetched as yet so those won't display on the map.
Hi Shane,
Thanks for the answer.
I have tried to use the infinite scrolling function (I was thinking that with it, I can have all products defined inthe filter in one shot), but this is not working and only the displayed ones were placed on the map !
On the ohter hand, uses without pagination is not possible as the number of products makes that the loading time is too big.
I really need to find a solution on this.
Any idea?
Regards
Pat
I'm not seeing a way where this is possible because of how the map and views work together, if you look at the view loop output the map is being provided with the information of the posts that are currently being displayed by the view.
This means that if 12 posts are retrieved then only 12 posts will be on the map. If you do infinite scrolling then more items will appear as the users scroll.
An Idea is to keep the Map separate from the view itself. Meaning that you will create a separate view that is strictly for populating the map.
I already used your proposal to have a dedicated map in order to display 100% of the products. But this is something which is separated from the filter section I'm using for the product display.
What I need is to link the search views of the Views with a map view. Would it be possible to have a single search that monitors 2 different Views (one for the product display and another one for the map). In this condition, we could display pagination for the products Views and without pagination for the map Views?
Actually yes, you could allow both views to be filtered by one view filter.
All you need to do is add the same query filters manually dedicated map view and set those filters to be filtered by the same url parameters as the view with the frontend filters.