Up to 50 percent off

How to save geo location with add meta?

This topic contains 7 reply and 2 voices, and was last updated by Tareq Hasan 11 years, 6 months ago
Viewing 7 Posts - 1 through 7 (of 7 total)
Author Posts
May 17, 2013 at 2:39 am 3741
Tareq Hasan I dont't know how to save geo adress, too. A Solution with no Problems with Updates. I need a Tip.
May 17, 2013 at 11:17 am 3748
Tareq Hasan Tareq Hasan

Check here

May 17, 2013 at 7:23 pm 3789
zellermaniac zellermaniac

function wpufe_insert_address( $post_id ) {
    if ( isset( $_POST['find-address'] ) ) {
        update_post_meta( $post_id, 'shk-geolocation', $_POST['find-address'] );
    }
}
  
add_action( 'wpuf_add_post_after_insert', 'wpufe_insert_address' );
add_action( 'wpuf_edit_post_after_update', 'wpufe_insert_address' );

Slowly, I will provide the plugin concept.

How can I display the address in the field Imput?

May 17, 2013 at 7:30 pm 3792
Tareq Hasan Tareq Hasan

Sorry, you can’t display on that address field.

May 17, 2013 at 7:44 pm 3793
zellermaniac zellermaniac

I want to change this function to save the user geolocation. Which hooks I need.

Ok,

I save the geolocation from the user.
wp_usermeta
meta_key:shk-geo

user should not always input the same adress.

Can I user the usermeta geo to replace the standard geo?

May 17, 2013 at 7:45 pm 3794
zellermaniac zellermaniac

Thx for your help all the time. Is there an donation button.

May 17, 2013 at 7:48 pm 3795
zellermaniac zellermaniac

When I edit other Field are with postmeta.
Where can I edit in the plugin?

May 17, 2013 at 8:17 pm 3796
Tareq Hasan Tareq Hasan

I am not sure what are you trying to achieve. The geo location is already saves in the user profile.

About donation, try this.

Viewing 7 Posts - 1 through 7 (of 7 total)