birgire / geo-query

WordPress plugin: Geo Query - Modify the WP_Query/WP_User_Query to support the geo_query parameter. Uses the Haversine SQL implementation by Ollie Jones. With a Rest API example and support for an existing custom table .

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to query using lat/lon in one meta field?

con322 opened this issue · comments

Hi Was wondering if it was possible to use this plugin/geo query when storing lat/lon in one field?

Or can I some how get the lat/lon field and then split it where the comma before query is executed?

You're better off saving it out to separate fields in the first place. If that's not an option, you can just create/update individual meta keys for each on save.