How to Use URL Filters in WP Maps Pro Plugin (Step-by-Step Guide)

15000+ live websites are using this google maps wordpress plugin.

How to Use URL Filters in WP Maps Pro

custom map plugin wordpress

In our WP MAPS PRO plugin version 5.0, we have introduced a new feature where a user can filter the locations directly from the URL.

Step 1: Please Go to the Manage Maps page, now Add/Edit Map and scroll down to the URL Filters Settings section.
Switch on the Enable URL Filter option.

Enable URL Filter in Maps Plugin

Step 2: Click on Save Map and you’re done.

Now go to the frontend page where the map is located and pass parameters with the query string in the URL. Below are the supported query parameters:

search, category, limit, perpage, show_all_locations=true, zoom, hide_map=true, map_only=true

Examples:

1.) Search Filter: Filter the locations by search text.


https://www.wpmapspro.com/example/filter-by-category-in-google-maps/?search=american

2.) URL Category Filter: Filter locations by category.


https://www.wpmapspro.com/example/filter-by-category-in-google-maps/?category=beaches

3.) URL Zoom Filter: Change the map zoom level.


https://www.wpmapspro.com/example/filter-by-category-in-google-maps/?zoom=1

4.) URL Per Page Filter: Display number of locations per page.


https://www.wpmapspro.com/example/a-complete-listing-solution-for-google-maps/?perpage=3

5.) Hide Map Filter: Hide the map with the parameter hide_map=true.


https://www.wpmapspro.com/example/a-complete-listing-solution-for-google-maps/?hide_map=true

6.) Map Only Filter: Show only the map (hide tabs, filters, and listings).


https://www.wpmapspro.com/example/a-complete-listing-solution-for-google-maps/?maps_only=true

Related Tutorials:

Was this article helpful?
YesNo

Install Plugin Now!

WP MAPS PRO helps you create dynamic, customizable maps using Google Maps or Leaflet — no coding required. Includes free updates, premium support, and a 30-day money-back guarantee.