Up to 50 percent off

WPGeo Problems

This topic contains 11 reply and 2 voices, and was last updated by kiwi 10 years, 9 months ago
Viewing 11 Posts - 1 through 11 (of 11 total)
Author Posts
January 30, 2014 at 4:51 pm 14895
kiwi Still having problems getting the form to pass on coordinates to the WP Geo custom fields for the post. Have tried everything we know to fix for the last 3 weeks but can't seem to crack it. Our users add maps to every post created so its a big problem for us. Would really appreciate someone in your team taking a quick look at the form for us please to see if you can shed some light on this for us. Look forward to hearing from you soon.
January 30, 2014 at 11:20 pm 14913
Tareq Hasan Tareq Hasan

Sorry for that, can you post the login details here (as private)?

January 31, 2014 at 6:40 pm 14958
kiwi kiwi This reply has been marked as private.
February 3, 2014 at 12:14 am 15013
Tareq Hasan Tareq Hasan

You mentioned some code in other thread and that contains the meta key location_map. But the meta key name you are using in the form is enter_address. Are you using the same one in your code?

February 3, 2014 at 12:55 am 15016
kiwi kiwi

I’ve now changed the meta key to ‘location_map’ but its still not working. Code below is what we are using.

function wpufe_update_wp_geo( $post_id ) {
if ( isset( $_POST[‘location_map’] ) ) {
list( $lat, $long ) = explode(‘,’, $_POST[‘location_map’]);

update_post_meta( $post_id, ‘_wp_geo_latitude’, $lat );
update_post_meta( $post_id, ‘_wp_geo_longitude’, $long );
}

if ( isset( $_POST[‘geo_title’] ) ) {
update_post_meta( $post_id, ‘_wp_geo_title’, $_POST[‘geo_title’] );
}
}

add_action( ‘wpuf_add_post_after_insert’, ‘wpufe_update_wp_geo’ );
add_action( ‘wpuf_edit_post_after_update’, ‘wpufe_update_wp_geo’ );

February 3, 2014 at 1:21 am 15017
Tareq Hasan Tareq Hasan

Where did you added the code?

February 3, 2014 at 1:27 am 15018
kiwi kiwi This reply has been marked as private.
February 3, 2014 at 2:06 am 15019
Tareq Hasan Tareq Hasan

May be you didn’t notice my previous post, replace location_map with enter_address

February 3, 2014 at 2:11 am 15020
kiwi kiwi

Yes but I did the reverse. I left the location_map code in the custom file but changed the enter_address to location_map in the form meta key. Test it but is still not working.

February 5, 2014 at 2:06 am 15076
kiwi kiwi

I’ve also tried your way as suggested Tareq but still not working. I can see the co-ordinates have passed to location_map & enter_address custom fields correctly depending on which one is setup.

February 5, 2014 at 11:41 pm 15099
Tareq Hasan Tareq Hasan

I see the form contains with gmap location_map, also the code seems ok. No idea whats wrong.

February 6, 2014 at 12:58 am 15104
kiwi kiwi This reply has been marked as private.
Viewing 11 Posts - 1 through 11 (of 11 total)