• Resolved PH.Rhev

    (@phrhev)


    I’m creating a front end post submission, and i tried to put the placemark custom post types in the front end using the wp_insert_post. The post submission is a success but i am having a big problem in the address. It saves the address but not having a geolocation (longitude, latitude), how can I process the address when I submit the post in the front end?… is there anyway for it? , sorry im noob in PHP. I hope you can help me. More Power to you! Thank you.

    http://ww.wp.xz.cn/extend/plugins/basic-google-maps-placemarks/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ian Dunn

    (@iandunn)

    Try this:

    global $bgmp;
    $coordinates = $bgmp->geocode( $address );
    update_post_meta( $post->ID, 'bgmp_latitude', $coordinates[ 'latitude' ] );
    update_post_meta( $post->ID, 'bgmp_longitude', $coordinates[ 'longitude' ] );
    Thread Starter PH.Rhev

    (@phrhev)

    Thanks Ian! it works perfectly! 😀

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Basic Google Maps Placemarks] Front – end Placemark Post submission’ is closed to new replies.