Support » Plugins » [Plugin: Pronamic Google Maps] Getting coordinates set in post

  • Resolved v_decadence

    (@v_decadence)


    I use Pronamic Google Maps plugin. How can I get coordinates of the certain post, which I set when filling post information?

    Something like this:
    $lat = get_lat($post_id);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The latitude and longitude data are stored in post meta fields:

    $post_id = get_the_ID();
    
    $latitude = get_post_meta( $post_id, '_pronamic_google_maps_latitude', true );
    $longitude = get_post_meta( $post_id, '_pronamic_google_maps_longitude', true );

    Thanks! This is exactly what I needed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Pronamic Google Maps] Getting coordinates set in post’ is closed to new replies.