This is a category page compatible widget that works best in the sidebars. This widget will allow the visitors on the detail page to enter miles range to search the listings.

Let’s understand this by an example :
There is a listing for an educational institute in Rome. The search by miles page will allow the users to enter miles. The results will show all the listings that will fall within that miles to the educational institute

How to configure the Search by Miles Range widget

Title – suitable title for the widget.

Search by – You can allow visitors to search by kilometers  or meters.

Max Range – The maximum distance from the current location that the search can allow.

How the Search by Miles Range(Filters by mile) widget is supposed to work?

If you are facing confusion in using “T → Search by Miles Range” widget, then here is the detailed information for you.

Using the “T → Search by Miles Range” widget, you can search the nearest posts by miles or kilometers. Here, I am going to explain for miles.

By default we display all available listings on the category page irrespective of the site visitor’s current location.

We can use this widget by any of below two methods :

1) With Tevolution-LocationManager plugin
2) Without Tevolution-LocationManager plugin

Let’s see both of them with the detailed explanation as follows.

1) With Tevolution-LocationManager plugin

  • When someone uses the filters by miles filter then first of all it will check visitor’s current location. Suppose user is in New York and he/she use the filter to show available listings in mile range 1 – 30 then it will show them listings available in 30 miles radius from his/her(visitor’s) current location.
  • If you are not visiting the website from current city, meaning if you are not located in New York and you change the mile range to see listings within 30 miles it will not show any result to you because you are not located in New York.
  • Now, if you are entering any location in the Address field and filter to show available listings in mile range 1 – 30 then it will show you listings available in 30 miles radius from the location which you have inserted in the Address field.

2) Without Tevolution-LocationManager plugin

  • If you are working with only one city (For ex: New York) it means all the listings submitted on your site are located in New York only.
  • It will search the nearest listings from the location entered in the theme back end at WP-admin> Tevolution> Map Settings> Single city map settings> City latitude & City longitude.
  • For example: if any user will try to search the nearest listings from India, it will not display any listings.

Hope this tutorial helps you use this widget more effectively on your Directory website.