WP Geo problems
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 | 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 | 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 | 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 | [php] update_post_meta( $post_id, ‘_wp_geo_latitude’, $lat ); if ( isset( $_POST[‘geo_title’] ) ) { add_action( ‘wpuf_add_post_after_insert’, ‘wpufe_update_wp_geo’ ); Using this code, it’s updating wp geo lat/long perfectly. |
January 24, 2014 at 5:44 pm 14746 | |
kiwi | This reply has been marked as private. |