Custom Field Search/Filter (Secondary Search)

With the support of custom field filtering, you can search any data whether it is the store’s default field or the custom field you have created through ASL Settings > Custom Field Manager, to include this secondary search you have to use the shortcode below.

[ASL_STORELOCATOR search_2="title,description"]

In the above shortcode, we have added the title and the description search, you can add any amount of fields in comma separated way, here is the same as the city and state search.

[ASL_STORELOCATOR search_2="city,state"]

The above search field is only included in template 0 and template 1.

How to add Search by Store Name? #

In case you have added search by address and you want to include the search by name, you can try the following shortcode to include an additional search that will work with the store titles.

[ASL_STORELOCATOR search_2="title"]

The above shortcode attribute is not supported in Templates 2 and 3.

As of version 4.10.9, Agile Store Locator supports substring searches, allowing users to find matches within strings in the listed data. This feature is particularly useful when you want to search for a part of a word and get results that include any names containing that substring, for example:

If your data includes terms like “Motorcycle” and “Bicycle,” you can search for “cycle” to retrieve both results.

To activate this functionality, you need to add the search_2_contain parameter to the store locator shortcode. Here’s how you can do it:

  1. Edit the page or post where the store locator shortcode is placed.
  2. Modify the shortcode by adding the search_2_contain parameter as shown below:
[ASL_STORELOCATOR search_2="title" search_2_contain="1"]

This adjustment allows the store locator to perform substring searches, enhancing the search flexibility for users.

Change the Number of Results to Appear #

In order to change the number of results that appear using a Database search, you can use the following shortcode and define your own limits.

[ASL_STORELOCATOR search_name_limit="10"]