diff --git a/includes/class-geopost-all-import.php b/includes/class-geopost-all-import.php new file mode 100644 index 0000000..c64cc6d --- /dev/null +++ b/includes/class-geopost-all-import.php @@ -0,0 +1,40 @@ +lat); + update_post_meta($id, 'longitude', $coordinates->lng); + update_post_meta($id, '_coordinate_address', $address); + } + } + } + + private static function get_post_address($id) + { + return get_post_meta($id, 'street', true) . ' ' . + get_post_meta($id, 'city', true) . ', ' . + get_post_meta($id, 'state', true) . ' ' . + get_post_meta($id, 'zip', true) . ' ' . + get_post_meta($id, 'country', true); + } +}