• Resolved Fobstar

    (@fobstar)


    Hi there,

    Has the Post meta names changed for lan/long/title recently changed?

    Up until the last update we were able to pass on the geo coordinates to
    _wp_geo_latitude, _wp_geo_longitude, & _wp_geo_title from custom fields without any problems, however now it’s not passing on the coorginates at all.

    Appreciate your help & great plugin. Cheers

    https://www.ads-software.com/plugins/wp-geo/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ben Huson

    (@husobj)

    No nothing has changed. Meta get’s stored as the following and should still work:

    _wp_geo_latitude
    _wp_geo_longitude
    _wp_geo_title
    _wp_geo_marker
    _wp_geo_map_settings

    These keys are also defined as the following constants:

    WPGEO_LATITUDE_META
    WPGEO_LONGITUDE_META
    WPGEO_TITLE_META
    WPGEO_MARKER_META
    WPGEO_MAP_SETTINGS_META

    So you can access the data like this:

    get_post_meta( $post_id, WPGEO_LATITUDE_META, true );

    If you use the constant rather than the ‘_wp_geo_latitude’ it should ensure that you always reference the correct meta data, even if it has to change to another key name in future.

    Thread Starter Fobstar

    (@fobstar)

    Ok cool we have resolved our issue now. Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Geo Post Meta names’ is closed to new replies.