How can I implement a location based (zip code) search in WordPress?
I would modify the answer from gabrielk and the linked blog post by using database indexes and minimizing the number of actual distance calculations. If you know the coordinates of the user and you know the maximum distance (say 10km), you can draw a bounding box that is 20km by 20km with the current location … Read more