Hi,
I would like to increase the maximum number of listings displayed on the map on the search results page.
However, I don’t want to use the "Show all posts" option, because I want to keep the category filters working properly.
Also, I don’t want to change the global “Blog pages show at most” setting in Dashboard > Settings > Reading, because I want to keep only 4 listings displayed in the grid view (next to the map) and on archive pages.
Here is an example of the search URL:
🔗 https://www.materiauxbiosources.com/search/page/2/?geodir_search=1&stype=gd_place&s=+&snear&spost_category%5B0%5D=2378&spost_category%5B1%5D=2363&sgeo_lat&sgeo_lon
I’m using the Code Snippets plugin and I’m looking for a PHP snippet that would allow me to load, for example, 50 or 100 posts on the map, but still keep the grid view limited to 4 posts per page.
I found a similar discussion on the GeneratePress forum (with a different plugin):
🔗 https://generatepress.com/forums/topic/increasing-maximum-number-of-posts-shown-per-page-in-archive-with-pagination/
Any help or direction would be greatly appreciated!
Thanks in advance,
Kind regards