{"id":1147766,"date":"2016-08-04T11:51:58","date_gmt":"2016-08-04T18:51:58","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/"},"modified":"2016-08-04T11:57:27","modified_gmt":"2016-08-04T18:57:27","slug":"using-events-calendar-posts-outside-the-plugin","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/","title":{"rendered":"Using Events Calendar posts outside the plugin"},"content":{"rendered":"<p>I use the <a href=\"https:\/\/wordpress.org\/plugins\/custom-content-shortcode\/\" target=\"_blank\">Custom Content Shortcode<\/a> WP plugin to build custom query loops within page content, and I&#8217;ve used it to build event feeds because there&#8217;s much more flexibility than the Event Calendar shortcode. The feed on <a href=\"http:\/\/www.sierranevada.edu\/resources\/current-undergraduate-students\/\" target=\"_blank\">this page<\/a> is an example. The loops can filter by post type, taxonomie(s), and field values (including date fields).<\/p>\n<p>I want to build loops which call a specific date range, but only future events will display. I think it&#8217;s probably because the default for tribe_get_events is &#8216;future&#8217;, although I don&#8217;t understand how that applies outside the Events Calendar plugin. This is a college, so there are a lot of events I need to display by semester or school year, and the whole list needs to stay up throughout. Here&#8217;s the test loop I&#8217;m using, it finds events with the event category &#8216;academic-calendar&#8217; in the specified date range and displays the title and start date. Everything works properly except past events don&#8217;t display:<\/p>\n<p>[loop type=tribe_events taxonomy=tribe_events_cat term=academic-calendar field=_EventStartDate field_compare=more value=&#8217;2016-09-01 00:00:00&#8242; field_2=_EventEndDate field_compare_2=less value_2=&#8217;2017-01-30 00:00:00&#8242;]<br \/>\n[field title]; [field _EventStartDate]<br \/>\n[\/loop]<\/p>\n<p>I need to find a way to bypass the future event default. A way to specify the post type? A taxonomy? A  php snippet which will override the future default in the Custom Content loop? I&#8217;m sure that if I override the future default globally the result will be chaos! I can wrap the loop in a div with a specific id to target, but I can&#8217;t add an id inside the loop.<\/p>\n<p>Separate question: At one point I found a file in the plugin files which included lists of all the fields in events, venues, and organizers, maybe to set the default values. That&#8217;s how I figured out &#8216;_EventStartDate&#8217;. Now I can&#8217;t find it!!! What is it?<\/p>\n<p>Thanks, Susan<\/p>\n","protected":false},"template":"","class_list":["post-1147766","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>Using Events Calendar posts outside the plugin -<\/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\/using-events-calendar-posts-outside-the-plugin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Events Calendar posts outside the plugin -\" \/>\n<meta property=\"og:description\" content=\"I use the Custom Content Shortcode WP plugin to build custom query loops within page content, and I&#8217;ve used it to build event feeds because there&#8217;s much more flexibility than the Event Calendar shortcode. The feed on this page is an example. The loops can filter by post type, taxonomie(s), and field values (including date [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-08-04T18:57:27+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\/using-events-calendar-posts-outside-the-plugin\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/\",\"name\":\"Using Events Calendar posts outside the plugin -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-08-04T18:51:58+00:00\",\"dateModified\":\"2016-08-04T18:57:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/#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\":\"Using Events Calendar posts outside the plugin\"}]},{\"@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":"Using Events Calendar posts outside the plugin -","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\/using-events-calendar-posts-outside-the-plugin\/","og_locale":"en_US","og_type":"article","og_title":"Using Events Calendar posts outside the plugin -","og_description":"I use the Custom Content Shortcode WP plugin to build custom query loops within page content, and I&#8217;ve used it to build event feeds because there&#8217;s much more flexibility than the Event Calendar shortcode. The feed on this page is an example. The loops can filter by post type, taxonomie(s), and field values (including date [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/","article_modified_time":"2016-08-04T18:57:27+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\/using-events-calendar-posts-outside-the-plugin\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/","name":"Using Events Calendar posts outside the plugin -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-08-04T18:51:58+00:00","dateModified":"2016-08-04T18:57:27+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/using-events-calendar-posts-outside-the-plugin\/#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":"Using Events Calendar posts outside the plugin"}]},{"@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\/1147766","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\/1147766\/revisions"}],"predecessor-version":[{"id":1147768,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1147766\/revisions\/1147768"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1147766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}