This support ticket is created Il y a 8 années et 6 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am setting up a classifieds website using your classifieds template, and I need to include a distance search field in the Views parametric search. Is there a way of doing this?
And from a search point of view, I would like the search field to be auto populated by the user's location if they click on a current location button next to the field, is this also possible?
I know WordPress posts can be plotted on a map but I don't know how to use that location to set up a distance search (Within XXXmiles).
Also, Is there a way of plotting WordPress posts on a Google map by the user just entering their postcode in the front end CRED Ad submission form, rather than entering the latitude and longitude?
Unfortunately, there's no built in or easy way of doing this. Because Views Google Maps integration only works around lat/lon data.
However, you can extend the features based on the latitude and longitude stored in the custom fields. You will need to calculate the distance, apply logics, alter the main query and grab the results. Generally, this requires lot of custom coding, in addition to, understanding how all this works.
There are some good articles and discussions available on internet, a few are listed below for your reference:
In short, the solution you are looking for, requires some research to gather the building blocks. And then implementing within the WordPress system scope. As well as, extending the plugins or PHP Code accordingly.
We also offer a custom coding service for our Toolset Clients, where we build custom solutions (like this) on top of Toolset Plugins. Please see hidden link for more information.