{"id":1275457,"date":"2017-04-27T14:28:12","date_gmt":"2017-04-27T21:28:12","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/"},"modified":"2017-04-27T14:28:12","modified_gmt":"2017-04-27T21:28:12","slug":"need-to-exclude-recurring-events-from-upcoming-listings-after-series-started","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/","title":{"rendered":"Need to exclude recurring events from upcoming listings (after series started)"},"content":{"rendered":"<p>I&#8217;ve already checked the option for &#8220;Show only the first instance of each recurring event&#8221; under General settings, and yes, it does remove the recurring &#8220;children&#8221; events from the listings &#8212; EXCEPT when the initial event has already passed, then it shows whichever recurring sub-event is still upcoming!<\/p>\n<p>Here&#8217;s why this is a problem: in my case, I am selling attendance to a 5-week class series, and while I do need the recurring events to exist so that they show properly on the calendar, my customers should *never* have the option to purchase the sub-events independently, or to signup for the series once the initial class has passed. I am already redirecting any clicked links on the recurring sub-events back to the parent initial event, which does show the &#8220;this event has passed&#8221; warning at the top when viewed as a single event page. Honestly I wish I could universally remove the recurring sub-events from being accessed in any way, because they&#8217;re never supposed to be sold separately, only as a package series.<\/p>\n<p>But as for the primary event listing page https:\/\/curtismethod.com\/classes\/ (i&#8217;ve changed the events slug to classes) &#8212; where the query loop calls the upcoming events, I don&#8217;t want to have any of the recurring sub-events shown once the series has started. That listing should *only* contain classes which have yet to begin, and right now there are series in progress that are being shown.<\/p>\n<p>(as of right now, Series #102 and #103 have already begun, and yet they have recurring sub-events showing up in the listings, and I&#8217;m having to redirect to the parent [initial] event)<\/p>\n<p>I have tried all sorts of query modification with the tribe_events_pre_get_posts hook, or even mucking around with the template in \/src\/views\/list\/loop.php &#8212; but I can&#8217;t seem to target this specific event listing and exclude events which are part of a recurring series.<\/p>\n","protected":false},"template":"","class_list":["post-1275457","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>Need to exclude recurring events from upcoming listings (after series started) -<\/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\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Need to exclude recurring events from upcoming listings (after series started) -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve already checked the option for &#8220;Show only the first instance of each recurring event&#8221; under General settings, and yes, it does remove the recurring &#8220;children&#8221; events from the listings &#8212; EXCEPT when the initial event has already passed, then it shows whichever recurring sub-event is still upcoming! Here&#8217;s why this is a problem: in [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/\" \/>\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\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/\",\"name\":\"Need to exclude recurring events from upcoming listings (after series started) -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-04-27T21:28:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/#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\":\"Need to exclude recurring events from upcoming listings (after series started)\"}]},{\"@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":"Need to exclude recurring events from upcoming listings (after series started) -","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\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/","og_locale":"en_US","og_type":"article","og_title":"Need to exclude recurring events from upcoming listings (after series started) -","og_description":"I&#8217;ve already checked the option for &#8220;Show only the first instance of each recurring event&#8221; under General settings, and yes, it does remove the recurring &#8220;children&#8221; events from the listings &#8212; EXCEPT when the initial event has already passed, then it shows whichever recurring sub-event is still upcoming! Here&#8217;s why this is a problem: in [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/","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\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/","name":"Need to exclude recurring events from upcoming listings (after series started) -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-04-27T21:28:12+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-to-exclude-recurring-events-from-upcoming-listings-after-series-started\/#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":"Need to exclude recurring events from upcoming listings (after series started)"}]},{"@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\/1275457","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\/1275457\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1275457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}