WP Geo problems

This topic contains 5 reply and 2 voices, and was last updated by kiwi 10 years, 10 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
January 14, 2014 at 5:00 pm 14385
kiwi We are using this code to pass on the long/lat coordinates to the WP Geo plugin to display maps to posts. 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'] ); } This was working up until the last update but now not working at all. We can see the data is being saved to the post in a custom field (enter_address) ok - just not passing it to wp geo on post submit/update. No java errors appearing, plugins added or code changes made. Any help appreciated.
January 15, 2014 at 12:19 am 14399
Tareq Hasan Tareq Hasan

Which update you are talking about? The User Frontend plugin update or the WP Geo plugin update?

January 15, 2014 at 3:37 am 14410
kiwi kiwi

We updated the WP User Frontend plugin a few days ago. I have just updated the WP Geo plugin today but have checked the process and it’s still not working.

January 21, 2014 at 11:08 am 14642
kiwi kiwi

Any ideas re. this guys? We have troubleshooted for the past week with no success.

Would really appreciate some help to fix this map problem. Cheers

January 23, 2014 at 12:12 am 14706
Tareq Hasan Tareq Hasan

[php]
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’ );
[/php]

Using this code, it’s updating wp geo lat/long perfectly.

January 24, 2014 at 5:44 pm 14746
kiwi kiwi This reply has been marked as private.
Viewing 5 Posts - 1 through 5 (of 5 total)