2022 Developer Survey is open! Take survey.

Questions tagged [google-maps]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Google map API Key restrictions does not recognize website IP

I created a wordpress website and I use google map API. I would like to add restrictions to prevent troubles. So I get the IP of the website from my hosting services and I also ping it to double check....
user avatar
  • 5
-1 votes
0 answers
15 views

WORDPRESS Embeded MAP width change

https://www.hammertonbrewery.co.uk/site/tint-nitro-london-dry-stout-4-3/ On the webpage above I need to do the below on my GOOGLE MAP: – Reduce width of MAP – Ensure MAP is in the centre of the page ...
user avatar
0 votes
0 answers
18 views

Updating failed. The response is not a valid JSON response. specific to my browser when I include javascript in my html

I was able to insert custom html into my gutenberg wordpress editor (hosted by bluehost) and test my code by preview with no problems. I made calls to google maps and fetch() to get a list of ...
user avatar
0 votes
0 answers
11 views

How to get input value after google maps autocomplete?

How can I get input value after google maps autocomplete on a add post (listing) page? I have added some js code: jQuery( "#job_location" ).blur(function() { var value= jQuery( "#...
user avatar
0 votes
1 answer
86 views

Maps search box autocomplete with callback JS function?

I am struggling with using a callback for my Google Maps API. I am trying to have a Goolge Maps autocomplete search box and collect the Lat and Long for the searched location. I've found this answer ...
user avatar
  • 230
0 votes
0 answers
52 views

Nearby locations using Advanced custom fields, maps?

I am looking for a solution to query nearby locations based on a given lat and lng value, using ACF maps field. All I currently have is a lat and lng search value (that I want to use to search for ...
user avatar
  • 230
0 votes
1 answer
36 views

how to display google maps with javascript

I want to display one google custom map with javascript, I set this code in a code module, but when I post it only appear the code and not the map, how can I display my map correctly? The code works ...
user avatar
  • 101
0 votes
1 answer
42 views

Where is my google maps on my page? [closed]

Recently, a client contacted me to make a few modifications on their website. Now consider that I'm not the person who made this website. It was supposed to be easy ; add a few lines here and there, ...
user avatar
0 votes
0 answers
20 views

Form behaving differently on small screens vs desktop screen

I have an issue and I would be grateful for any ideas! I'm using a simple template bought at ThemeForest and I successfully added google maps autocomplete functionality for addresses in a field via a ...
user avatar
  • 101
0 votes
0 answers
18 views

Adding geographical information on a registration page

I'm trying to get my head around developing a delivery app for restaurants where I make a a WP site with WooCommerce and a local payment gateway. I need the app to only allow registrations from ...
user avatar
0 votes
1 answer
219 views

ACF Map with custom styles field

I have an option page where i can create maps, i created a custom field to paste my own styles. What i need to do is pass this informations in my maps.js. What i have done is create an hidden div like ...
user avatar
1 vote
0 answers
20 views

How to build a site with a map that shows where people offer and need help?

I'm trying to build a site where people can ask and offer help to each other. The idea is that people could publish "help needed" and "help offered" posts by filling in a simple form (with address ...
user avatar
0 votes
0 answers
258 views

Adding External Gmap JS to WordPress

I had some working javascript code that I wanted to move out of the template file and put into a .js file. I moved the code into a front.js file, where some pre-existing javascript lives. Now I'm ...
user avatar
  • 127
-1 votes
1 answer
104 views

Elfsight Google Maps Plugin Version 2.1.0 : Location image input not found [closed]

I'm using Elfsight Google Maps Plugin Version 2.1.0 in my WordPress website to create an interactive map. 1- I can’t find the image field in the description section like in the demo to upload an ...
user avatar
0 votes
1 answer
63 views

Insert Google Maps HTML in Wordpress

I want to insert a Google Map into Wordpress without paying for a plugin. I just want to adjust the style, add a few markers and add a description to the makers. Therefore I simple used the example ...
user avatar
  • 1
0 votes
1 answer
252 views

Filtering markers on google map by WordPress category[SOLVED]

I have created the Google map with posts as markers but no I want to filter those markers by category and I’m stuck. Here is my code: functions.php $args = array('post_type' => 'post',array( ...
user avatar
0 votes
1 answer
63 views

Post title and url not showing on google map marker [closed]

I have managed to show multiple markers but I can't show the post title and to make the same post title as URL to go to a single page. Here is the code in functions.php $args = array('post_type'...
user avatar
1 vote
1 answer
5k views

Google Maps API problem - initMap()

I do custom wordpress temple site with google maps script, and php code. I have problem with loading of it, they do not always work, sometimes i must refreshing site ten times until it starts to work. ...
user avatar
1 vote
1 answer
706 views

Integrating PHP into Javascript to display map markers with Google API - problem with wp_localize

I would display Google maps markers on custom site temple with Google API maps. I do everything like this post: Integrating PHP into Javascript to display map markers with Google API But a console ...
user avatar
0 votes
1 answer
492 views

ACF Maps admin error: "For development purposes only" even after supplying api key

This issue is occurring even when I tried registering the key via various actions and filters. Fails Method 1: function my_acf_init() { acf_update_setting('google_api_key', 'xxx'); } ...
user avatar
0 votes
2 answers
1k views

This page can't load Google Maps correctly [closed]

I am trying to get map from address but there are appear some error like You have exceeded your request quota for this API in my console so can anyone help me to fix this. My Javascript code look ...
user avatar
  • 1,037
0 votes
1 answer
99 views

create a shortcode for embedding google map in a page

I'm trying to create a shortcode that lets you embed google map anywhere in wordpress page. shortcode must be able to pass two attributes ( latitude and longitude ) Below is edited question ( I did ...
user avatar
  • 397
1 vote
0 answers
2k views

Refresh Markercluster after ajax call

I have an ajax function that queries posts based on users by a certain role which is fine and works but the problem is that I am trying to refresh the markers on Google Maps after the ajax is complete ...
user avatar
  • 111
1 vote
1 answer
842 views

Google maps causing mixed content in header

On two pages of a website I have a google maps coded via iframe like so: <iframe src="https://www.google.com/maps/embed?pb=rest-of-link" width="100%" height="300" frameborder="0" style="border:0"&...
user avatar
  • 127
-2 votes
1 answer
202 views

Google Map not displayed [closed]

I'm setting up a website and I'm using Avada Theme. I'm using avada's builder to insert a Google Map but it won't show. I get this: Does anybody know what's going wrong?
user avatar
-1 votes
1 answer
531 views

Mixed Content: The page at 'https://www.taylortireauto.com/?s=contacts' was loaded over HTTPS [closed]

I'm trying to load the page. But I receive the error in console. Can someone please tell me how to solve this error. ?s=contacts:1137 Mixed Content: The page at 'https://www.taylortireauto.com/?...
user avatar
  • 11
-1 votes
1 answer
635 views

How to handle multiple distance matrix api request in loop to reduce load and request time?

if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); $school_address =str_replace(' ','+',$school_address ); $school_address =str_replace(',','',$...
user avatar
0 votes
0 answers
1k views

Generate a radius search of custom post type locations

Alright so I've been searching for days and driving myself crazy looking for a solution. I want to create a search function that will allow the user to search for the companies locations that are ...
user avatar
  • 21
0 votes
1 answer
360 views

mutiple shortcode instance on the same page

i'm building a google map shortcode plugin and i use wp_localize_script to pass variables to js script like (lat , lng , zoom...) . but i have an issue : when i use this shortcode twice or more in a ...
user avatar
  • 21
2 votes
1 answer
442 views

AJAX in Wordpress, sending coords data to MySQL and show after into map

I've spent some months trying to figure out how to get users geolocation and pass it into MySQL and so after being shown with markers on the map. I've got stuck already in passing the data through ...
user avatar
  • 25
0 votes
1 answer
363 views

Where is fusion-gmap-container?

I’ve been given a beautiful WordPress website to maintain. We use the Avada theme. We have a contact page, which has a large Google map, with the location of our business. A little while ago, I ...
user avatar
  • 121
1 vote
1 answer
629 views

How to display Unicode correctly?

I'm wondering how to get WordPress to display these Unicode place names correctly? I use Google Maps API JSON data to get the place names and create Woocommerce categories for products. However, for ...
user avatar
  • 11
0 votes
1 answer
1k views

Advanced Custom Fields - Google Map Won't Render Unless Variable Dumped

I'm trying to display the Google Map object created using the Advanced Custom Field plugin's built-in generator. I used the stock Javascript/CSS/PHP outlined here as this exactly matches my use case: ...
user avatar
  • 67
0 votes
1 answer
287 views

Display posts on a map

The wordpress mobile app lets you store gps position as option for each post. I would like to have a map that displays a point for each post. I saw a lot of questions about this, most of them are ...
user avatar
-1 votes
1 answer
5k views

In WP, Google map error initMap is not a function [closed]

Getting a series of errors on some Goole maps JS, that will show a series of markers from a json file as well as showing the list. The map comes up and works with all the markers and info windows ...
user avatar
-1 votes
1 answer
519 views

google map Info window [closed]

I am using Maps module of Divi theme and i would like the info window on this map to stay open by default, instead of onclick. http://www.wilsonhrm.nl/contact-us/ How can I achieve that?
user avatar
0 votes
1 answer
177 views

Anybody knows if i could upload a leaflet or openlayers3 map to wordpress webpage?

I have an openlayers3 webmap edited by html,js and css. I want to upload my webmap into my wordpress webpage but i don't know how. I have filezilla to upload the files. Which directory is to upload ...
user avatar
1 vote
0 answers
117 views

'SiteOrigin Google Maps' widget conflicting with 'ProtheusThemes'

not sure if this is the right forum, but I wanted to share the experience. on wordpress site that I manage I'm having trouble displaying google map... I'm using some ProtheusTheme that seem to cover ...
user avatar
0 votes
1 answer
405 views

Google Maps API in wordpress

I get "documentElement of null" error. I am trying to follow https://developers.google.com/maps/articles/phpsqlajax_v3 UPDATE: On using dev tools it seems that the "downloadUrl()" function has ...
user avatar
0 votes
0 answers
819 views

Dealing with multiple Google maps API calls

Is there any way to eliminate multiple google maps API calls? On my site it's called from at least 3 different sources, and when it's called multiple times it's crashing all the maps. How you dealt ...
user avatar
  • 302
1 vote
1 answer
238 views

Create a custom taxonomy that will be used to create and filter markers in a Google Map

I'm trying to create a Wordpress shortcode that will output a full-width, filterable Google Map with a set of markers that will be loaded on first load (and shown or hidden depending on the filters ...
user avatar
4 votes
1 answer
3k views

Google Maps not displaying in wordpress using Google Maps Javascript API

I was wondering if someone could help me out. I am currently trying to set up the google maps Javascript API to work with wordpress on a localhost but i have had no luck. Please find my steps below. ...
user avatar
  • 625
0 votes
1 answer
2k views

Implement Google Maps JS on Wordpress

I am looking to implement this code on my wordpress site as efficiently as possible https://developers.google.com/maps/documentation/javascript/styling and I only want the JS to load on posts/pages ...
user avatar
  • 688
-4 votes
1 answer
3k views

Google Map JavaScript error after migrating

After migrating www.irfc.eu from previous domain, Google Map (it's a widget of the theme) stopped working. JavaScript console says: Google Maps API error: MissingKeyMapError https://developers.google....
user avatar
0 votes
1 answer
2k views

ACF google map not working [closed]

I tried to add google map field in ACF, but when I try to edit or add new article it show the map for sec and then diable it and wrtie: Oops! Something went wrong. This page didn't load Google Maps ...
user avatar
-2 votes
1 answer
1k views

Custom Backend data for map to JSON file?

I want to create a map in the frontend with data that is populated with Point of interests. I want to manage the POI data in the backend but need a generated JSON file from that backend data that ...
user avatar
2 votes
0 answers
124 views

Google Maps in WordPress

I am dealing with an issue that I would like to have some suggestions on how to solve it. I have a self-hosted WordPress managed website where I implemented a Google Map to display on a page. On this ...
user avatar
0 votes
1 answer
6k views

Integrating PHP into Javascript to display map markers with Google API

I am getting one map marker to display but not multiple markers. However the data displays in the HTML log. I think I am missing a loop or did not use my current loop correctly. Anyone who could ...
user avatar
0 votes
1 answer
2k views

Where to paste Google Map Snippet / JavaScript / CSS for WordPress integration

I have a working JS Fiddle here: http://jsfiddle.net/geocodezip/50g6vgns/1/ It is not displaying correctly when I paste all the code onto the text area of a WordPress page. For the external ...
user avatar
  • 127
5 votes
3 answers
9k views

Remove extra Google Maps script

I'm developing a plugin that use a Google Maps API. The plugin enqueuing script in this way: wp_enqueue_script('google-maps', 'http://maps.google.com/maps/api/js?sensor=false&callback=initialize&...
user avatar
  • 716