WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Pronamic Google Maps] Getting coordinates set in post (3 posts)

  1. v_decadence
    Member
    Posted 1 year ago #

    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);

  2. Remco Tolsma
    Member
    Posted 1 year ago #

    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 );
  3. v_decadence
    Member
    Posted 1 year ago #

    Thanks! This is exactly what I needed.

Topic Closed

This topic has been closed to new replies.

About this Topic