Forum: F.A.Q

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support and general questions related to GEO my WP plugin and its core add-ons please use the support forum.

Display LatLng in post

Forums F.A.Q Display LatLng in post

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #33806

    I am trying to display the LatLng as a string inside the post.

    So when a user has navigated into my post I will display all my post data and meta data(address contact info etc) but I also want to echo out my LatLong so that the user can use/record them.

    Is it possible to grab this data and how?


    Hi Duane,
    The lat and long should be stored in the custom fields _wppl_lat and _wppl_long
    So using
    <?php echo get_post_meta($post->ID,'_wppl_lat',true); ?>
    should display the latitude of the current post being viewed.


    Super! Thanks


    I’d like to provide the same function, but I have next to 0 php know-how. Where exactly would I put the line of code Eyal mentioned?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.