Wp Query : Order by distance lat,lon

This may not be possible using what WP_Query gives you out of the box, it wasn’t designed to do math across multiple parameters for sorting. You can filter via meta_query and provide bounds, and you can order by a single value, you can even order by multiple values, e.g. show all items by their lat, … Read more