{"id":1173709,"date":"2016-10-07T07:23:01","date_gmt":"2016-10-07T14:23:01","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/"},"modified":"2016-10-07T07:23:01","modified_gmt":"2016-10-07T14:23:01","slug":"google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/","title":{"rendered":"Google Maps in Footer on Events Page &#8211; Duplicate GMaps Script + ACF Problem"},"content":{"rendered":"<p>Hello,<\/p>\n<p>i`m using the Events Calendar Pro and Advanced Custom Fields Pro on my Website.<br \/>\nI have a Google Map in my footer with multiple markers which can be set up by the user in the backend on an ACF Options Page.<br \/>\nEverything works fine with the Events on other Pages, but on the Events-Pages itself, there are two problems:<\/p>\n<p>1) The Events Calendar Pro load it&#8217;s own GMaps Script, but because i already load it on every page for my Footer-Map, I get an JS Error: <code>You have included the Google Maps API multiple times on this page. This may cause unexpected errors.<\/code><br \/>\nCan I dequeue the whole GMaps-Scripts from the Events Page or is there any other solution?<\/p>\n<p>2) To load the markers into the map, i use  the ACF-Function  <a href=\"https:\/\/www.advancedcustomfields.com\/resources\/google-map\/\">&#8216;if( have_rows(&#8216;locations, &#8216;option&#8217;) ):&#8217;<\/a>. But on the Events page, this ACF-Function gets ignored and skipped. Is there a way to fix this? I think it&#8217;s a problem with The Events Calendar, because on every other page, the footer works fine.<\/p>\n<p>Thanks for your help!<\/p>\n<p>Greets<\/p>\n<p>Nico<\/p>\n","protected":false},"template":"","class_list":["post-1173709","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Google Maps in Footer on Events Page - Duplicate GMaps Script + ACF Problem -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Maps in Footer on Events Page - Duplicate GMaps Script + ACF Problem -\" \/>\n<meta property=\"og:description\" content=\"Hello, i`m using the Events Calendar Pro and Advanced Custom Fields Pro on my Website. I have a Google Map in my footer with multiple markers which can be set up by the user in the backend on an ACF Options Page. Everything works fine with the Events on other Pages, but on the Events-Pages [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/\",\"name\":\"Google Maps in Footer on Events Page - Duplicate GMaps Script + ACF Problem -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-10-07T14:23:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Google Maps in Footer on Events Page &#8211; Duplicate GMaps Script + ACF Problem\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google Maps in Footer on Events Page - Duplicate GMaps Script + ACF Problem -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/","og_locale":"en_US","og_type":"article","og_title":"Google Maps in Footer on Events Page - Duplicate GMaps Script + ACF Problem -","og_description":"Hello, i`m using the Events Calendar Pro and Advanced Custom Fields Pro on my Website. I have a Google Map in my footer with multiple markers which can be set up by the user in the backend on an ACF Options Page. Everything works fine with the Events on other Pages, but on the Events-Pages [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/","name":"Google Maps in Footer on Events Page - Duplicate GMaps Script + ACF Problem -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-10-07T14:23:01+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-in-footer-on-events-page-duplicate-gmaps-script-acf-problem\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Google Maps in Footer on Events Page &#8211; Duplicate GMaps Script + ACF Problem"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1173709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1173709\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1173709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}