Jump to content


This topic is now archived and is closed to further replies.


Google maps short-code and security alert

Recommended Posts




I am embedding google maps in a simple web page: http://jerusalembiennale.org

The maps embedded in a bootstrap modal and I have 5 of them in the page.


I am using this code to generate them dynamically, so that the user will be able to set is own locations (you can see theme in the "Where and Who" section of the page, when tapping a location).

<?php $address = '[googlemap width="100%" height="300" address="'.get_sub_field('address').'"]' ?>
<?php echo do_shortcode($address); ?>

The problem is that even that the map is loaded it's not pointing to the correct location, And I am getting this error for each:


Unsafe JavaScript attempt to access frame with URL http://jerusalembiennale.org/ from frame with URL https://maps.google.com/maps?f=q&source=s_q&hl=en&q=David+Remez+2,+Jerusalem,+Israel&output=embed. Domains, protocols and ports must match.




Any help ?





Share this post

Link to post
Share on other sites



I'm afraid to say I'm not a programmer and we generally don't provide coding support here. You may need a programmer for this.


Where did you get the PHP code?


Also, you may need to convert the PHP to shortcode via a plugin from WP.org called Shortcode Exec PHP.

Former PageLines Moderator, Food Expert and Raconteur

Share this post

Link to post
Share on other sites