Google Maps
Author | Posts |
---|---|
March 26, 2013 at 10:41 am 1519 | |
Hi, I need extended map facilities and need to use Pronamic Google Maps plugin. How do I make the address and map appear in the front end user pro form? | |
March 26, 2013 at 11:02 am 1521 | |
Did you checked the Address Button in the google map custom field? Can you describe what extended facilities do you need? | |
March 26, 2013 at 11:09 am 1523 | |
Hi I need the user to be able to enter their address – your plugin allows this. Then I want to show a map with the location on the post, in the side bar. So far all I can see is that your plugin just shows the lat and long coordinates. I also need to be able to show one large map with all the posts from selected post types. Pronamic Google Maps plugin seems to offer me the functionality that I need. Can I do this with your map feature in your plugin? Thanks for answering so quickly | |
March 26, 2013 at 1:02 pm 1529 | |
You could show the map using shortcode To show the large map from a post type needs some custom work I guess. The way pronamic maps works, it’s bit different here. They store the co-ordinates in different meta fields where WP User Frontend stores it in a single meta field. But the principle is the same. | |
March 26, 2013 at 2:45 pm 1535 | |
This is a solution to that makes compatible with Pronamic Google Map plugin. As WP User Frontend saves the latitude and longitude, where pronamic saves them in two different meta fields, the solution is to split the User Frontends location info to compatible pronamic meta fields. You can paste this code into your themes functions.php and need to provide the meta key (e.g: [php] if ( !class_exists(‘Pronamic_Google_Maps_Post’) ) { if ( isset( $_POST[$custom_field] ) ) { list( $def_lat, $def_long ) = explode( ‘,’, $address ); if ( $def_lat ) { if ( $def_long ) { if ( $def_lat && $def_long ) { add_action( ‘wpuf_add_post_after_insert’, ‘wpuf_pronamic_location’ ); |