{"id":1145096,"date":"2016-07-28T07:43:27","date_gmt":"2016-07-28T14:43:27","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/"},"modified":"2016-07-28T07:43:27","modified_gmt":"2016-07-28T14:43:27","slug":"tribe_get_events-and-future-recurring-events-when-first-has-passed","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/","title":{"rendered":"tribe_get_events and future recurring events when first has passed"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I have developed a site and utilising this plugin and it works really well, however I need to show the current and future events that run on a recurring basis, but hide recurring events that have passed.<\/p>\n<p><code><br \/>\n$events = tribe_get_events( array(<br \/>\n'posts_per_page'  =&gt; 25,<br \/>\n'eventDisplay'    =&gt; 'custom',<br \/>\n'post_parent__in' =&gt; array( 0 ),<br \/>\n'start_date' =&gt; '2016-07-01',  \/\/put this in as the events that should show start on the 9th July, if I put today they don't show.<br \/>\n'tax_query'       =&gt; array(<br \/>\n\t'relation'\t  =&gt; 'OR',<br \/>\n\tarray(<br \/>\n\t\t'taxonomy' =&gt; 'tribe_events_cat',<br \/>\n\t\t'field'    =&gt; 'term_id',<br \/>\n\t\t'terms'    =&gt; $tax,<br \/>\n\t\t)<br \/>\n\t)<br \/>\n));<br \/>\n<\/code><\/p>\n","protected":false},"template":"","class_list":["post-1145096","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>tribe_get_events and future recurring events when first has passed -<\/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\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"tribe_get_events and future recurring events when first has passed -\" \/>\n<meta property=\"og:description\" content=\"Hi, I have developed a site and utilising this plugin and it works really well, however I need to show the current and future events that run on a recurring basis, but hide recurring events that have passed. $events = tribe_get_events( array( &#039;posts_per_page&#039; =&gt; 25, &#039;eventDisplay&#039; =&gt; &#039;custom&#039;, &#039;post_parent__in&#039; =&gt; array( 0 ), &#039;start_date&#039; =&gt; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/\" \/>\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\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/\",\"name\":\"tribe_get_events and future recurring events when first has passed -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-07-28T14:43:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/#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\":\"tribe_get_events and future recurring events when first has passed\"}]},{\"@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":"tribe_get_events and future recurring events when first has passed -","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\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/","og_locale":"en_US","og_type":"article","og_title":"tribe_get_events and future recurring events when first has passed -","og_description":"Hi, I have developed a site and utilising this plugin and it works really well, however I need to show the current and future events that run on a recurring basis, but hide recurring events that have passed. $events = tribe_get_events( array( 'posts_per_page' =&gt; 25, 'eventDisplay' =&gt; 'custom', 'post_parent__in' =&gt; array( 0 ), 'start_date' =&gt; [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/","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\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/","name":"tribe_get_events and future recurring events when first has passed -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-07-28T14:43:27+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_events-and-future-recurring-events-when-first-has-passed\/#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":"tribe_get_events and future recurring events when first has passed"}]},{"@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\/1145096","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\/1145096\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1145096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}