{"id":1292840,"date":"2017-06-03T07:21:58","date_gmt":"2017-06-03T14:21:58","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/"},"modified":"2017-06-05T20:19:10","modified_gmt":"2017-06-06T03:19:10","slug":"events-not-displaying-in-map-view","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/","title":{"rendered":"Events Not Displaying In Map View"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>I am using the following code in my functions.php file to display all event markers in map view:<\/p>\n<p>&#8212; &#8212; &#8212; &#8212; &#8212;<\/p>\n<p>\/*<br \/>\nEnsures all events appear on map view.<br \/>\n*\/<\/p>\n<p>function show_all_markers( $data ) {<br \/>\nif ( ! isset( $data[&#8216;markers&#8217;] ) ) return $data;<\/p>\n<p>$cached_markers = get_transient( &#8216;all_geo_markers_store&#8217; );<br \/>\nif ( $cached_markers ) {<br \/>\n$data[&#8216;markers&#8217;] = $cached_markers;<br \/>\nreturn $data;<br \/>\n}<\/p>\n<p>$geo_loc = Tribe__Events__Pro__Geo_Loc::instance();<br \/>\n$events = tribe_get_events( array(<br \/>\n&#8216;posts_per_page&#8217; =&gt; -1,<br \/>\n&#8216;eventDisplay&#8217; =&gt; &#8216;map&#8217;<br \/>\n) );<\/p>\n<p>$markers = $geo_loc-&gt;generate_markers( $events );<br \/>\nset_transient( &#8216;all_geo_markers_store&#8217;, $markers, DAY_IN_SECONDS );<\/p>\n<p>$data[&#8216;markers&#8217;] = $markers;<\/p>\n<p>return $data;<br \/>\n}<\/p>\n<p>add_filter( &#8216;tribe_events_ajax_response&#8217;, &#8216;show_all_markers&#8217; );<\/p>\n<p>&#8212; &#8212; &#8212; &#8212; &#8212;<\/p>\n<p>This was working fine until very recently. Now, despite this code, a lot of markers have dropped off and are not displaying suddenly.<\/p>\n<p>The only changes I have made are the following:<\/p>\n<p>Adding CSS to my style.css file to remove the header in map view, as follows:<\/p>\n<p>&#8212; &#8212; &#8212; &#8212;<\/p>\n<p>\/******************************<br \/>\n&#8211; EVENTS CALENDAR &#8211; removes space at top of map page &#8211;<br \/>\n********************************\/<\/p>\n<p>.tribe-events-map #bodywrapper #content_inner_wrapper.dark #content-container .topspacer {<br \/>\nheight:0px !important;<br \/>\n}<\/p>\n<p>&#8212; &#8212; &#8212; &#8212;<\/p>\n<p>I have also installed two tracking plugins (but have since deactivated them to check for conflict and found nothing, so I reactivated them again).<\/p>\n<p>These are &#8211;<\/p>\n<p>1. Facebook for WooCommerce<br \/>\n2. WooCommerce AdWords Conversion Tracking<\/p>\n<p>Please can you help advise what I should do? All the markers currently showing (on this page: www.handlebards.com\/tickets) are in a certain geographic area by the looks of it. But they span a date range from June through to September so I don&#8217;t think it&#8217;s a date sorting issue.<\/p>\n<p>We&#8217;re at peak buying time at the minute, so it&#8217;s really scary to me that this is happening right now.<\/p>\n<p>Thanks!<\/p>\n<p>Callum<\/p>\n<p>P.S. Below are two screenshots of what should be displaying (taken about four days ago), and what is displaying now, for comparison.<\/p>\n","protected":false},"template":"","class_list":["post-1292840","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>Events Not Displaying In Map View -<\/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\/events-not-displaying-in-map-view\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Events Not Displaying In Map View -\" \/>\n<meta property=\"og:description\" content=\"Hi there, I am using the following code in my functions.php file to display all event markers in map view: &#8212; &#8212; &#8212; &#8212; &#8212; \/* Ensures all events appear on map view. *\/ function show_all_markers( $data ) { if ( ! isset( $data[&#8216;markers&#8217;] ) ) return $data; $cached_markers = get_transient( &#8216;all_geo_markers_store&#8217; ); if ( [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-06T03:19:10+00:00\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/\",\"name\":\"Events Not Displaying In Map View -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-06-03T14:21:58+00:00\",\"dateModified\":\"2017-06-06T03:19:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/#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\":\"Events Not Displaying In Map View\"}]},{\"@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":"Events Not Displaying In Map View -","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\/events-not-displaying-in-map-view\/","og_locale":"en_US","og_type":"article","og_title":"Events Not Displaying In Map View -","og_description":"Hi there, I am using the following code in my functions.php file to display all event markers in map view: &#8212; &#8212; &#8212; &#8212; &#8212; \/* Ensures all events appear on map view. *\/ function show_all_markers( $data ) { if ( ! isset( $data[&#8216;markers&#8217;] ) ) return $data; $cached_markers = get_transient( &#8216;all_geo_markers_store&#8217; ); if ( [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/","article_modified_time":"2017-06-06T03:19:10+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/","name":"Events Not Displaying In Map View -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-06-03T14:21:58+00:00","dateModified":"2017-06-06T03:19:10+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-displaying-in-map-view\/#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":"Events Not Displaying In Map View"}]},{"@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\/1292840","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1292840\/revisions"}],"predecessor-version":[{"id":1293545,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1292840\/revisions\/1293545"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1292840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}