{"id":65240,"date":"2013-09-10T01:41:42","date_gmt":"2013-09-10T08:41:42","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/strange-work-of-tribe_get_events\/"},"modified":"2015-07-07T06:28:46","modified_gmt":"2015-07-07T13:28:46","slug":"strange-work-of-tribe_get_events","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-work-of-tribe_get_events\/","title":{"rendered":"Strange work of tribe_get_events()"},"content":{"rendered":"<p>I read the following document and develop the PHP code.<br \/>\n* https:\/\/theeventscalendar.com\/support\/documentation\/the-events-calendar-template-tags-general-functions\/#functiontribe_get_events<br \/>\nglobal $post;<br \/>\n$current_date = date(&#8216;j M Y&#8217;);<br \/>\n$get_posts = tribe_get_events(array(&#8216;start_date&#8217;=&gt;$current_date,&#8217;posts_per_page&#8217;=&gt;10) );<\/p>\n<p>There was not problem until recent days (Maybe, plugin version 3.0.4&#8230; Sorry, I don&#8217;t remember&#8230;).<br \/>\nToday, I took notice that the PHP code needs to be changed as follow.<\/p>\n<p>global $post;<br \/>\n$current_date = date(&#8216;Y-m-j&#8217;);<br \/>\n$get_posts = tribe_get_events(array(&#8216;eventDisplay&#8217;=&gt;&#8217;all&#8217;, &#8216;start_date&#8217;=&gt;$current_date,&#8217;posts_per_page&#8217;=&gt;10) );<\/p>\n<p>This is two point.<br \/>\n1. Date format changed?<br \/>\n2. &#8216;eventDisplay&#8217; value is required?<\/p>\n<p>About No.1, I think that this is the reference to the Date format in General settings.<br \/>\n(My settings is YYYY\/MM\/DD)<\/p>\n<p>After the code was changed, there is not problem, so I report the strange behavior.<\/p>\n","protected":false},"template":"","class_list":["post-65240","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>Strange work of tribe_get_events() -<\/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\/strange-work-of-tribe_get_events\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Strange work of tribe_get_events() -\" \/>\n<meta property=\"og:description\" content=\"I read the following document and develop the PHP code. * https:\/\/theeventscalendar.com\/support\/documentation\/the-events-calendar-template-tags-general-functions\/#functiontribe_get_events global $post; $current_date = date(&#8216;j M Y&#8217;); $get_posts = tribe_get_events(array(&#8216;start_date&#8217;=&gt;$current_date,&#8217;posts_per_page&#8217;=&gt;10) ); There was not problem until recent days (Maybe, plugin version 3.0.4&#8230; Sorry, I don&#8217;t remember&#8230;). Today, I took notice that the PHP code needs to be changed as follow. global $post; $current_date [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-work-of-tribe_get_events\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:28:46+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=\"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\/strange-work-of-tribe_get_events\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-work-of-tribe_get_events\/\",\"name\":\"Strange work of tribe_get_events() -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-09-10T08:41:42+00:00\",\"dateModified\":\"2015-07-07T13:28:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-work-of-tribe_get_events\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-work-of-tribe_get_events\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-work-of-tribe_get_events\/#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\":\"Strange work of tribe_get_events()\"}]},{\"@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":"Strange work of tribe_get_events() -","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\/strange-work-of-tribe_get_events\/","og_locale":"en_US","og_type":"article","og_title":"Strange work of tribe_get_events() -","og_description":"I read the following document and develop the PHP code. * https:\/\/theeventscalendar.com\/support\/documentation\/the-events-calendar-template-tags-general-functions\/#functiontribe_get_events global $post; $current_date = date(&#8216;j M Y&#8217;); $get_posts = tribe_get_events(array(&#8216;start_date&#8217;=&gt;$current_date,&#8217;posts_per_page&#8217;=&gt;10) ); There was not problem until recent days (Maybe, plugin version 3.0.4&#8230; Sorry, I don&#8217;t remember&#8230;). Today, I took notice that the PHP code needs to be changed as follow. global $post; $current_date [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-work-of-tribe_get_events\/","article_modified_time":"2015-07-07T13:28:46+00:00","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\/strange-work-of-tribe_get_events\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-work-of-tribe_get_events\/","name":"Strange work of tribe_get_events() -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-09-10T08:41:42+00:00","dateModified":"2015-07-07T13:28:46+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-work-of-tribe_get_events\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-work-of-tribe_get_events\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/strange-work-of-tribe_get_events\/#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":"Strange work of tribe_get_events()"}]},{"@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\/65240","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\/65240\/revisions"}],"predecessor-version":[{"id":981110,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/65240\/revisions\/981110"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=65240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}