{"id":1537384,"date":"2018-05-23T13:17:10","date_gmt":"2018-05-23T20:17:10","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/"},"modified":"2018-06-01T09:15:31","modified_gmt":"2018-06-01T16:15:31","slug":"showing-past-events-in-essential-grid-2","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/","title":{"rendered":"Showing Past Events in Essential Grid"},"content":{"rendered":"<p>Like the poster @gmha who posted  May 15, 2018<br \/>\nHi \u2013 We\u2019re hoping to display past events in a certain category in an essential grid. Right now past events won\u2019t show at all in any of our grids. Our past events page is functioning just fine, but we\u2019re hoping to show a subset of past events instead of the entire list. Any advice? Maybe there is a parameter I could add to the grid to ask the past events to appear?<\/p>\n<p>I too want to do the same &#8211; this is for a yearly conference and we want to leave up the sessions from last year until we have new sessions. Originally I had set this up using Essential grid and had a nice little page with each session track in an Essential Grid display that the user could then click through to read more. To my surprise after the dates passed the Tribe Events disappeared. I thought maybe upgrading to pro would help. I&#8217;ve tried a myriad of work arounds none of which have worked. Site uses xtheme template with cornerstone framework.<\/p>\n<p>I have customized the Tribe Events view with some additional functions so I am happy to work with code to make this happen. <\/p>\n<p>I went to Essential grid&#8217;s help and used a function they had listed to show only past events and that has not worked.<\/p>\n<p>Crossing my fingers you have some ideas to help &#8212; now that I am a pro user. I have looked at you integration page for this and also tried the suggestion for short codes. But confused as to how that might work when these are already based on Essential Grid shortcodes. \/also tried adding WP parameters to Essential Grid to no avail. Also tested another Events plugin called Events Manager and past events did show&#8230; but I really want to use your plugin as it is far superior in all other situations. Not to mention I&#8217;ve done some customization that I don&#8217;t want to have to try and do over.<\/p>\n<p>I&#8217;d be happy to give you admin access to the site if needed.<\/p>\n<p>Site page is http:\/\/simconnectlive.com\/facilitators\/, if you go to anchor link http:\/\/simconnectlive.com\/facilitators\/#breakout-1 you&#8217;ll see a header Embracing Disruption &amp; Innovation Sessions, and others &#8212; below each were numerous sessions that ended on April 13th 2018. The only one showing was a test I set up for 2019 just to see if the upcoming events were showing. The past events are showing up see this link to see these events http:\/\/simconnectlive.com\/schedule\/list\/?tribe_paged=1&amp;tribe_event_display=past, but really would like this to work with Essential grid.<\/p>\n<p>this is the essential grid function I added to test a specific grid to show past events, no luck&#8230;<br \/>\n\/\/for essential grid<br \/>\n\/\/ code can be added to your themes functions.php file<\/p>\n<p>add_filter(&#8216;essgrid_query_caching&#8217;, &#8216;eg_stop_caching&#8217;, 10, 2);<br \/>\nadd_filter(&#8216;essgrid_get_posts&#8217;, &#8216;eg_mod_query&#8217;, 10, 2);<\/p>\n<p>\/\/ turn off caching for your grid<br \/>\nfunction eg_stop_caching($do_cache, $grid_id) {<\/p>\n<p>if($grid_id == 16) return false;<br \/>\nreturn true;<\/p>\n<p>}<\/p>\n<p>function eg_mod_query($query, $grid_id){<\/p>\n<p>\/\/ show only upcoming events in the future<br \/>\nif($grid_id == 36){<\/p>\n<p>$query[&#8216;meta_query&#8217;] = array( &#8216;key&#8217; =&gt; &#8216;_start_ts&#8217;, &#8216;value&#8217; =&gt; current_time(&#8216;timestamp&#8217;), &#8216;compare&#8217; =&gt; &#8216;&gt;=&#8217;, &#8216;type&#8217;=&gt;&#8217;numeric&#8217; );<br \/>\n$query[&#8216;meta_key&#8217;] = &#8216;_start_ts&#8217;;<br \/>\n$query[&#8216;meta_value&#8217;] = current_time(&#8216;timestamp&#8217;);<br \/>\n$query[&#8216;meta_value_num&#8217;] = current_time(&#8216;timestamp&#8217;);<br \/>\n$query[&#8216;meta_compare&#8217;] = &#8216;&gt;=&#8217;;<\/p>\n<p>}<\/p>\n<p>\/\/ show only events from the past<br \/>\nif($grid_id == 16){<\/p>\n<p>$query[&#8216;meta_query&#8217;] = array( &#8216;key&#8217; =&gt; &#8216;_start_ts&#8217;, &#8216;value&#8217; =&gt; current_time(&#8216;timestamp&#8217;), &#8216;compare&#8217; =&gt; &#8216;&lt;=&#8217;, &#8216;type&#8217;=&gt;&#8217;numeric&#8217; );<br \/>\n$query[&#8216;meta_key&#8217;] = &#8216;_start_ts&#8217;;<br \/>\n$query[&#8216;meta_value&#8217;] = current_time(&#8216;timestamp&#8217;);<br \/>\n$query[&#8216;meta_value_num&#8217;] = current_time(&#8216;timestamp&#8217;);<br \/>\n$query[&#8216;meta_compare&#8217;] = &#8216;&lt;=&#8217;;<\/p>\n<p>}<\/p>\n<p>return $query;<\/p>\n<p>}<\/p>\n<p>Thank you ahead for your help!!!!!!!!!!!!!<br \/>\nLisa Bowser<\/p>\n<p>========================<br \/>\nPLEASE LEAVE FOR SUPPORT<br \/>\nReporting the same issue as:\u00a0https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid\/<\/p>\n","protected":false},"template":"","class_list":["post-1537384","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>Showing Past Events in Essential Grid -<\/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\/showing-past-events-in-essential-grid-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Showing Past Events in Essential Grid -\" \/>\n<meta property=\"og:description\" content=\"Like the poster @gmha who posted May 15, 2018 Hi \u2013 We\u2019re hoping to display past events in a certain category in an essential grid. Right now past events won\u2019t show at all in any of our grids. Our past events page is functioning just fine, but we\u2019re hoping to show a subset of past [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/\" \/>\n<meta property=\"article:modified_time\" content=\"2018-06-01T16:15:31+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=\"3 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\/showing-past-events-in-essential-grid-2\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/\",\"name\":\"Showing Past Events in Essential Grid -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-05-23T20:17:10+00:00\",\"dateModified\":\"2018-06-01T16:15:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/#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\":\"Showing Past Events in Essential Grid\"}]},{\"@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":"Showing Past Events in Essential Grid -","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\/showing-past-events-in-essential-grid-2\/","og_locale":"en_US","og_type":"article","og_title":"Showing Past Events in Essential Grid -","og_description":"Like the poster @gmha who posted May 15, 2018 Hi \u2013 We\u2019re hoping to display past events in a certain category in an essential grid. Right now past events won\u2019t show at all in any of our grids. Our past events page is functioning just fine, but we\u2019re hoping to show a subset of past [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/","article_modified_time":"2018-06-01T16:15:31+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/","name":"Showing Past Events in Essential Grid -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-05-23T20:17:10+00:00","dateModified":"2018-06-01T16:15:31+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/showing-past-events-in-essential-grid-2\/#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":"Showing Past Events in Essential Grid"}]},{"@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\/1537384","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\/1537384\/revisions"}],"predecessor-version":[{"id":1543907,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1537384\/revisions\/1543907"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1537384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}