Skip to main content

Questions tagged [google-maps]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9 votes
1 answer
10k views

Is there a way to display all my posts on a single Google Map?

I'd like to "geotag" all my posts and display them on a single Google map.
alekone's user avatar
  • 127
8 votes
3 answers
11k views

How to query posts based on lat-lng coordinate as post meta?

I'm planning a custom WordPress theme where the Custom Post Type (CPT) will have latitude and longitude coordinate as it's meta value. The latitude and longitude will be displayed as a Marker in a ...
ifdion's user avatar
  • 1,467
5 votes
3 answers
10k 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&...
Ignat B.'s user avatar
  • 736
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. ...
steamfunk's user avatar
  • 645
4 votes
3 answers
5k views

Custom Post Type with Input fields to seperate table on database.

At the moment I'm using a custom post type called 'locations' I would like to be able to put input fields into the custom post type that would store the information such as ( address, type, phone ...
espnicholas's user avatar
4 votes
1 answer
207 views

WordPress Google Maps

Does anyone know of a nice map plugin for WordPress? I have a diary website in WordPress where each diary entry has the latitude and longitude of where each post was written. I thought it would be ...
user avatar
3 votes
1 answer
8k views

Integrating Google Maps with custom marker and hover?

I want the exact output of this site. I want to edit the marker and hover options in the Google map, but I don't know how to do that. Please also list any ideas for Google Map plugins
Ramkumar M's user avatar
3 votes
2 answers
8k views

How can I run shortcode after click with ajax

I have a little problem and need your help. I have tabs on my page and in one tab i have google maps. This tab is hidden by default and when i clik on it, i can see only small piece of maps. Map it is ...
Artus2000's user avatar
2 votes
2 answers
1k views

Google Maps and Yandex Maps doesn't work correctly

When I try to insert a map into my WordPress page, I get only a gray-colored field with some controls as shown on the picture: No matter, how I put in into the page: by using a special plugin or with ...
Alexey Shatygin's user avatar
2 votes
2 answers
2k views

Show posts on a Google Map

Through the custom fields, I assigned to each post its geographic coordinates (latitude/longitude). Now, I'd like to show a Google Maps with a marker for each post. Do you have any suggestions on ...
User's user avatar
  • 341
2 votes
1 answer
196 views

Travel Blog Plugins

I'm using Wordpress to create a blog of my travels later on this year. I would like the blog to have the following features my posts to be geo-located a map containing the locations of my posts ...
ajmccall's user avatar
  • 125
2 votes
1 answer
228 views

How can I automatically attach posts to a map?

I'd like to display a Google map of places relating to posts (eg, places I've visited). Is there a plugin or method available that will allow me to have a Google map on a page and when creating a ...
James's user avatar
  • 201
2 votes
1 answer
263 views

Run a Parallel PHP Application with Wordpress

I have a PHP based application that runs on the Google Maps API. Most of it is written in straight PHP and Javascript, but I want to use some sort of CMS or tool to upload images, because there will ...
The Hawk's user avatar
  • 169
2 votes
2 answers
6k views

How to get a Google maps SQL->XML->map marker tutorial to work in WordPress

I have been trying to figure out what is wrong with my code for a couple days now, and I can't seem to crack it. I am trying to follow this tutorial I tried all three of the suggested methods to ...
Kelly Mann's user avatar
2 votes
1 answer
482 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 ...
Caesar's user avatar
  • 25
2 votes
0 answers
131 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 ...
Dougless's user avatar
2 votes
1 answer
150 views

Locate authors on Google map version 3

<script type="text/javascript"> var infowindow = new google.maps.InfoWindow(); var pinkmarker = new google.maps.MarkerImage('/wp-content/themes/mapdemo/pink_Marker.png', new google.maps.Size(20, ...
cmsdeployed's user avatar
1 vote
2 answers
861 views

Problem Building a Simple Google Maps Plugin

I'm learning how to build a google maps plugin. (I know that there are plugins that add Google Maps, but I'd like to be able to adapt the code to my needs. And it's fun to learn). Unfortunately, I'm ...
Laxmidi's user avatar
  • 971
1 vote
3 answers
6k views

Google Map iframe in a tab issue

I have embedded a map on the third tab on a page. Page here > 'Itinerary' tab If you go straight to the tab while the page is still loading - it loads the map perfectly. However, if you wait until ...
Ciarán's user avatar
  • 51
1 vote
1 answer
6k 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. ...
Piotr Mucha's user avatar
1 vote
1 answer
576 views

WordPress Google Maps in Custom Theme

So I'm building a custom theme and implemented the Google Map API so I can give it a cleaner feel and so on then the normal Google Map. I've run into a problem when implementing my Marker as I ...
Stephen's user avatar
  • 1,304
1 vote
2 answers
1k views

Putting PHP variables into javascript [duplicate]

I've created a simple theme options page for my site. The options page contains three input fields. I can output the the fields by using get_option. The three fields are called using the following: ...
Ciaran Gaffey's user avatar
1 vote
1 answer
291 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 ...
RobbTe's user avatar
  • 242
1 vote
1 answer
876 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"&...
aMJay's user avatar
  • 127
1 vote
1 answer
819 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 ...
Neil's user avatar
  • 11
1 vote
1 answer
60 views

I need to get an array from the wordpress database

I need to convert this code //This creates an array from the database and allows us to use it later in the jquery //CREATE SQL STATEMENT $sql_locations = "SELECT * FROM tbllocations"; //EXECUTE SQL ...
Devin Gray's user avatar
1 vote
1 answer
2k views

How to implement a Google map store locator

I have followed the following Google developer doc about creating a store locator usng PHP & MySql. https://developers.google.com/maps/articles/phpsqlsearch_v3 I have this working but now I ...
Rob Fyffe's user avatar
  • 111
1 vote
2 answers
1k views

Google Map Shortcode for Custom Taxonomy/Post Types

Calling all WP Stack Exchangers! I am currently using Alain Gonzales' Google Map Shortcode plug-in on a site I'm developing, and it's worked just fine: Google Map Shortcode plug-in on wordpress.org ...
Alex Stanhope's user avatar
1 vote
1 answer
419 views

Location-Based Pages displaying results near customer

I'm creating a website where the customer will enter their postal code and the pages (with a distance selected of 5, 10, 20 miles) will display on either a Google map or Bing map. The page results ...
Brett Rush's user avatar
1 vote
1 answer
2k views

Google Map Latitude and Longitude values in form

I have a front end submit form and would like to include a two extra custom fields which will hold Latitude and Longitude values. I want the users to select the location on a map which will be ...
Ciprian's user avatar
  • 212
1 vote
1 answer
298 views

Display a post map on a blank/new page

On my single.php file I am displaying the_title(), the_content() and a link to a Google Map (Javascript v3). Lat/Lng coordinates for each location map are held in two separate meta fields attached to ...
Andrew's user avatar
  • 21
1 vote
1 answer
515 views

Asynchronous enqueue of the Google Maps API

I am loading the Google Maps API on a lot of Wordpress sites and I have always added it with an enqueue. Lately, we have been getting the following warning on the console: "Google Maps JavaScript ...
Sergi's user avatar
  • 11
1 vote
0 answers
21 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 ...
juhanamp's user avatar
1 vote
1 answer
874 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 ...
Piotr Mucha's user avatar
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 ...
Matt H's user avatar
  • 111
1 vote
0 answers
120 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 ...
ManOnStack's user avatar
1 vote
1 answer
286 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 ...
Oriol A.'s user avatar
1 vote
0 answers
1k views

PHP array to JS array to use in google map

Hi I want to use some data stored in a php array to use it in google map api, to populate multiple locations in a the map. I use the loop to create my php array. <?php while ( $the_query-&...
Pablo Levin's user avatar
1 vote
0 answers
242 views

Anyway to have google maps display multiple AND unique locations per individual posts/pages?

Having the hardest time finding a solution to a big problem. So far I can't find any plugins that are capable of doing this. I have a site where each post needs to have it's own google map that ...
Ilya 's user avatar
  • 27
1 vote
2 answers
3k views

Google Map is not working on the second tab of Tab Plugins

I am using a postTabs plugin and Comprehensive Google Map Plugin, my problem was when I have my Google map on the second tab, the map is not loading as expected. But if I move it on the 1st tab it ...
markyeoj's user avatar
  • 507
1 vote
0 answers
1k views

GeoMashup plugin: how to customize cluster markers / icons? [closed]

Is there a way to customize the standard cluster icon marker which GeoMashup uses to display nearby posts grouped in a certain area? By default it's a red dot in V2, or a blue dot in V3. I nee to ...
unfulvio's user avatar
  • 1,814
1 vote
1 answer
259 views

How to pinpoint posts location with Google map v3?

This has been edited because I had the wrong tutorial all along. I would like to pinpoint my WordPress posts location in a single Google Map using the Javascript Option V3. I have look all over, but ...
cmsdeployed's user avatar
1 vote
3 answers
7k views

How to add multiple markers on the google map, at a certain meta_key and meta_value

I have over 200 customposts and each has customfields (add_city, add_state, add_location) in each custompost is googlmap with customfield (geo_longitude geo_latitude) Help please, display in googlmap ...
Shklyar Sergio's user avatar
0 votes
1 answer
1k views

Extracting Address from Custom Post via Javascript for Google Maps API

I am created a theme with custom posts which outputs to a Google Map with place markers. Users will create a custom post users and include street addresses which will be geocoded using Google's Map ...
AME's user avatar
  • 197
0 votes
1 answer
771 views

Plot location on Google map using full address specified in custom field

Is there an easy way to plot a location on a Google map using an address specified in a custom field? For example, if a post has the following address specified; 1600 Pennsylvania Avenue, NW ...
Dean Elliott's 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 ...
Pratik Patel's user avatar
  • 1,103
0 votes
1 answer
1k views

Querying posts by latitude and longitude to build a Google Maps with several markers

I have 4 different post types and 4 differey taxonomies Each term for each taxonomy stores a marker (url to a png icon). Each post has coordinates attached with Advanced Custom Fields and I'll ...
unfulvio's user avatar
  • 1,814
0 votes
3 answers
553 views

passing markup thought a shortcode attribute

Happy holidays everyone. Hope someone can help me in thinking about a problem I've run into. I have a plugin Im building that allows the user to pull address data from the maps API - ie it ...
orionrush's user avatar
  • 910
0 votes
1 answer
1k views

Geo Mashup Maps show only specified categories

I'm using the Geo Mashup plugin to display maps on my site. I've changed a pages template, so it now only lists pages from certain categories instead of listing them all, which has now effected my ...
david's user avatar
  • 73
0 votes
2 answers
502 views

Google map that plot's several markers - each one with custom data

I'm looking to create a custom Google map that plots several markers on it that then shows custom data in the popup when the marker is clicked. I've setup the pages in WP in this manner: Map (parent ...
Rob's user avatar
  • 1,406