This support ticket is created 6 years, 4 months ago. 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 trying to:
Display the closest result based of geolocation (see attached screenshot). When all results are returned the ordering is correct based off my location. I want to be able to return the closest store based off the users location.
I expected to see:
Recline Furniture Morayfield (when result limit is set to 1)
Instead, I got:
Recline Furniture Castle Hill (see attached screenshot)
When I want to limit the results to 1 (to display just the closest store) the result is incorrect.
Is this unexpected behaviour due to the post limit query happening prior to the geocode lookup? Is there any way just to return the closest store without having to write my own custom jQuery?
The issue has been identified and will be fixed in the next release. That's due in a couple of weeks. The developer said the nature of the fix made it difficult to extract into a patch, so we won't have an update before then I'm afraid.