{"id":1580424,"date":"2018-07-20T13:44:10","date_gmt":"2018-07-20T20:44:10","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/"},"modified":"2018-07-20T13:44:10","modified_gmt":"2018-07-20T20:44:10","slug":"start-and-end-date-category-attributes-not-working-on-shortcode","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/","title":{"rendered":"Start and end date, category attributes not working on shortcode?"},"content":{"rendered":"<p>I&#8217;m trying to use the shortcode attributes fromdate, todate and category to display only events in the &#8220;availability&#8221; category between July 1, 2018 and August 31, 2018.<\/p>\n<p>I&#8217;ve set up 5 test events(screenshot attached).<\/p>\n<p>I&#8217;m using this code:<\/p>\n<p><code>&lt;?php echo do_shortcode(&#039;[tribe_events tribe-bar=&quot;false&quot;\u00a0category=&quot;availability&quot; fromdate=&quot;2018-07-01&quot; todate=&quot;2018-08-31&quot;]&#039;); ?&gt;<\/code><\/p>\n<p>Seems straightforward enough to me, but it&#8217;s still spitting out all events regardless of date or category(screenshots attached).<\/p>\n<p>Is there a comprehensive list of shortcode attributes anywhere?  The Events Calendar documentation often seems lacking in depth &#8211; there&#8217;ll be a mention of 5 &#8211; 10 things you can do with a particular feature like shortcodes or queries, but there doesn&#8217;t seem to be an exhaustive list of every attribute or every variable?  I found a listing on an unrelated site, but the info was out of date.<\/p>\n","protected":false},"template":"","class_list":["post-1580424","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>Start and end date, category attributes not working on shortcode? -<\/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\/start-and-end-date-category-attributes-not-working-on-shortcode\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Start and end date, category attributes not working on shortcode? -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m trying to use the shortcode attributes fromdate, todate and category to display only events in the &#8220;availability&#8221; category between July 1, 2018 and August 31, 2018. I&#8217;ve set up 5 test events(screenshot attached). I&#8217;m using this code: &lt;?php echo do_shortcode(&#039;[tribe_events tribe-bar=&quot;false&quot;\u00a0category=&quot;availability&quot; fromdate=&quot;2018-07-01&quot; todate=&quot;2018-08-31&quot;]&#039;); ?&gt; Seems straightforward enough to me, but it&#8217;s still spitting out [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/\" \/>\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\/start-and-end-date-category-attributes-not-working-on-shortcode\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/\",\"name\":\"Start and end date, category attributes not working on shortcode? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-07-20T20:44:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/#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\":\"Start and end date, category attributes not working on shortcode?\"}]},{\"@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":"Start and end date, category attributes not working on shortcode? -","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\/start-and-end-date-category-attributes-not-working-on-shortcode\/","og_locale":"en_US","og_type":"article","og_title":"Start and end date, category attributes not working on shortcode? -","og_description":"I&#8217;m trying to use the shortcode attributes fromdate, todate and category to display only events in the &#8220;availability&#8221; category between July 1, 2018 and August 31, 2018. I&#8217;ve set up 5 test events(screenshot attached). I&#8217;m using this code: &lt;?php echo do_shortcode(&#039;[tribe_events tribe-bar=&quot;false&quot;\u00a0category=&quot;availability&quot; fromdate=&quot;2018-07-01&quot; todate=&quot;2018-08-31&quot;]&#039;); ?&gt; Seems straightforward enough to me, but it&#8217;s still spitting out [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/","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\/start-and-end-date-category-attributes-not-working-on-shortcode\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/","name":"Start and end date, category attributes not working on shortcode? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-07-20T20:44:10+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/start-and-end-date-category-attributes-not-working-on-shortcode\/#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":"Start and end date, category attributes not working on shortcode?"}]},{"@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\/1580424","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\/1580424\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1580424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}