Plugin – including external javascript calling google maps
Plugin – including external javascript calling google maps
Plugin – including external javascript calling google maps
If you check the JavaScript error console, you’ll see the plugin is throwing an error: Error: SyntaxError: missing ) after condition Source File: http://www.associatedkyotoprogram.dreamhosters.com/wp-content/plugins/comprehensive-google-map-plugin/assets/js/cgmp.framework.min.js?ver=7.0.31 Line: 33, Column: 60 Source Code: tions”).val();d=w(d);m=parseFloat(a.fn.jquery);if(1.3>m && m~=1.10)return alert(i.oldJquery),!1;if(“undefined”== If you look at the plugin page, you’ll that the majority of people are reporting the plugin as broken, and it … Read more
You can separate it into two functions by using following code : <?php add_action(‘tmpl_detail_page_custom_fields_collection’,’custom_fields_colletion’); /* Name : custom_fields_colletion Desc : Return the custom fields collection for detail/single page */ function custom_fields_colletion() { global $wpdb,$post,$detail_post_type; $detail_post_type = $post->post_type; if(isset($_REQUEST[‘pid’]) && $_REQUEST[‘pid’]) { $cus_post_type = get_post_type($_REQUEST[‘pid’]); $PostTypeObject = get_post_type_object($cus_post_type); $PostTypeLabelName = $PostTypeObject->labels->name; $single_pos_id = $_REQUEST[‘pid’]; } else … Read more
Using Custom Field in Google Map Embed Code Works in One Theme, Not Another
Plugin options with googlemap iframe
I’ve managed to work around this by using Gmaps.js. function initMap($el) { var bounds = []; var waypts = []; var $markers = $($el).find(‘.marker’); var map = new GMaps({ div: $el, scrollwheel: false, zoomControl : true, zoomControlOpt: { style: ‘LARGE’, position: ‘TOP_RIGHT’ }, panControlOpt: { position: ‘TOP_RIGHT’ } }); $markers.each(function() { // DEFINE CURRENT/NEXT MARKER … Read more
I’ve achieved this in the following website check the “UbicaciĆ³n” bock. I did this using ACF Pro (5.0). Im sharing you the code you need in order to implement this. Hope this is what you are looking for (there are a few extra fields that are not needed). <?php $image = get_field(‘location_background_image’, ‘option’); $size=”background”; $location_background_image_url … Read more
Querying latitude and longitude into google maps correctly
Add different custom markers for different post types in Google maps API
Meta seems like a fine place for storing this data. To make it more compact: $markers = array( ‘carrot’ => ‘marker_url_1’, ‘beet’ => ‘marker_url_2’, ); $icon = isset( $markers[ $veggie_type ] ) ? $markers[ $veggie_type ] : $markers[0]; Or if you are sure you have markers for each type and you can rename the marker … Read more