• I’ve used the GeoPress plugin to enter lat/long for posts, and its functions to create a URL to open a Google Maps page. It hasn’t been updated for over a decade, and it no longer presents the lat/long UI in the latest WP.

    I’ve found Simple Location, which presents the lat/long UI, but has no discernible API for retrieving the lat/long for a post. Its last forum post 3 months ago is unanswered, so I’m not optimistic about asking for help there.

    There’s GeoMyWP and a few others, which have extremely elaborate functions for embedding maps, checking the locations of people commenting, checking my current location, but I don’t need any of that. All I want to do is to have a URL behind the word “here”, which I am willing to build if I could just get to the post’s lat/long in an API.

    Anybody have any ideas?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Use phpMyAdmin (SQL DB user interface app) to locate where and how the plugin stored lat/long data. It’s usually accessed through your hosting panel. It might help to know the ID of a post with lat/long data. If the data is stored in post meta table, search for the post ID and all meta data for the post will be returned. Review the results for lat/long data and note the associated key name.

    If the data is not in post meta, it could be in a plugin specific table. Review the table list for additional tables beyond the default WP tables and do a similar post ID search.

    Once you know where/how it’s stored you can create code to generate map links and create a post meta box into which you can continue to enter lat/long data for new posts and save it in a compatible manner for minimal disruption.

Viewing 1 replies (of 1 total)
  • The topic ‘GeoPress is dead! How do I geotag posts and access the lat/long?’ is closed to new replies.