Hello,
I have spend hours trying to figure out how I can expose the longitude and latitude meta in the backend.
I understand that these coordinates are stored in the Data Table and would not not accessible in the listings custom field meta out-of-the-box.
I’ve included this is in my snippet plugin with no success.
$lat = geodir_get_post_meta($post_id, 'post_latitude', true);
$lng = geodir_get_post_meta($post_id, 'post_longitude', true);
Am I missing something?
I’d like to make these meta fields available to my site’s other plugins.
I apologize if my question is at all naive- I’ve spent days trying to troubleshoot this issue to avoid hiring a developer, for what seems to be a fairly simple task.
Thank you in advance.