Get user's coordinates
-
Is there a shortcode or PHP call to get the user’s location by coordinates? Individual calls for long/lat would be fine.
I am trying to pass the user’s coordinates (as determined by approving the browser prompt, not by manual user input) into a shortcode for another plugin (Events Manager) to display certain custom post types by location, but that shortcode only accepts coordinates.
So something like:
echo do_shortcode ('[events_list near="' . do_shortcode ('[gmw_current_location]') . '"]'); ?>
Except of course that [gmw_current_location] passes more than just coordinates. It could be php too – that would be fine. I just can’t seem to find where GMW is getting lat & long.
Any insight?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Get user's coordinates’ is closed to new replies.