One of the many great features exclusive to Events Calendar Pro is the ability to perform smart location-based searches when filtering calendar events. When viewing the main calendar page of a site that’s running Events Calendar Pro, you’ll see an additional option located next to the fields for month- and keyword-based searches.

Before you begin, please review this article about setting up your Google Maps API Key. If you do not run through those steps, you may not be able to take advantage of the functionality described here.

If you are interested in how location search works more in-depth, then we recommend reading this article about it as well.

Location search in the events bar

Note: Only one venue will be visible on the map if you are using the built-in API key. To display more venues, you’ll need to create a custom API key. See this Knowledgebase article for more information.

Expanding on the basic venue options that are provided for calendar events in The Events Calendar, Events Calendar Pro includes support for saved venues and geolocation data. This geolocation data is precisely what enables the powerful location search capabilities of Pro, making it easier than ever for your users to find local events that match their interests.

Basic Searching

For demonstration purposes, let’s try a basic search on our Demo Site using Map View. When accessing your main calendar page in Map View, you’ll see all of your events plotted on a large map based on their venue location.

Map View with The Events Calendar

Simply enter an address, city, or other mappable location into the In a location field, then click the Find Events button to process your search. After a few moments, your map and the event listings below will refresh, and you’ll be presented with a smaller selection of nearby events (if any events are found within the specified radius).

Enter an address in the events bar to enable location search

This feature can be used for filtering events on any calendar view and works great with our Filter Bar add-on for even more precise filtering capabilities. When Filter Bar is used in tandem with Events Calendar Pro, you can adjust the radius for your location-based searches by using the Distance filter. This can be helpful if, for example, you’d like to search for events across multiple nearby metro areas, or if you’re looking to filter a calendar with a large number of events to display only those closest to your location.

Use the distance filter available with Filter Bar to enhance location search

Taking it Further

By default, the location search field is displayed in the Event Search Bar for all calendar views, including List, Month, Day, Week, Map, and Photo. If you’d prefer to limit location-based searches to map-based views only, you can achieve this with a simple settings toggle.

After logging in to your WordPress site’s admin, navigate to Events > Settingsfrom the WordPress sidebar and click the Display tab. You’ll find the checkbox for Hide location search under the Calendar Display heading.

Option to Hide location search under Events Settings

Select this box and click the Save Changes button at the bottom of the settings page once you’re finished. Your changes will be applied immediately to your calendar views, and you’ll no longer see the location search option on non-map-based views. Please Note: This setting will only show up if you have a Custom API enabled in your settings.

You will no longer see the location search once you disable the setting

Filtering Events by Location with WP_Query

If you’ve ever used WP_Query or our own tribe_get_events() function to create a customized display of event data, you’ll be pleased to know that we’ve recently added support for location-based filters in these queries! Beginning with Events Calendar Pro version 4.4.16, the arguments tribe_geoloc, tribe_geoloc_lat, and tribe_geoloc_lng are available for writing into your custom queries. For more information on location-specific and other changes added in this release, check out our complete release notes here.

Troubleshooting the location search

If you are outside of the United States, you may find that the location search doesn’t work as expected. In order to resolve this issue, you can add the snippet in this Knowledgebase article to change the default location to your current location.


We hope that this post helps to give you a solid understanding of how our location searches work and how your users can leverage this feature to make better use of your calendars! As always, if you should have any questions, we’re just a click away over at our help desk–please don’t hesitate to pay us a visit!