• 0
Sign in to follow this  
Followers 0

Google maps short-code and security alert


Question

Posted · Report post

Hi

 

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 ?

 

Thanks

Shani

 

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted · Report post

Shani,

 

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0