{"id":99720,"date":"2014-02-02T01:21:22","date_gmt":"2014-02-02T09:21:22","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/day-limit-doesnt-work\/"},"modified":"2014-02-18T07:14:35","modified_gmt":"2014-02-18T15:14:35","slug":"day-limit-doesnt-work","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/day-limit-doesnt-work\/","title":{"rendered":"Day Limit doesn&#039;t work"},"content":{"rendered":"<p>Hi there,<br \/>\nI made this template to show on my start-page:<br \/>\n&lt;!&#8211; TRIBE EVENTS begin &#8211;&gt;<br \/>\n\t&lt;?php<\/p>\n<p>\tglobal $post;<br \/>\n\t$current_date = date(&#8216;j M Y&#8217;);<br \/>\n\t$end_date = date(&#8216;j M Y&#8217;, strtotime(&#8216;1 days&#8217;));<br \/>\n\t$all_events = tribe_get_events(<br \/>\n\t\tarray(<br \/>\n\t\t\t&#8216;eventDisplay&#8217;=&gt;&#8217;upcoming&#8217;,<br \/>\n\t\t\t&#8216;posts_per_page&#8217;=&gt;99,<br \/>\n\t\t\t&#8216;start_date&#8217;=&gt;$current_date,<br \/>\n\t\t\t&#8216;end_date&#8217;=&gt;$end_date,<br \/>\n\t)<br \/>\n\t);<\/p>\n<p>\tforeach($all_events as $post) {<br \/>\n\tsetup_postdata($post);<br \/>\n\t?&gt;<\/p>\n<p>&lt;div class=&#8221;row events-list-item&#8221;&gt;<br \/>\n\t\t&lt;div class=&#8221;col-xs-12 col-sm-3 pull-left&#8221;&gt;<br \/>\n\t\t\t\t<a>&#8220;&gt;&lt;?php the_post_thumbnail(&#8216;full&#8217;, array(&#8216;class&#8217; =&gt; &#8216;img-circle img-responsive &#8216;)); ?&gt;<\/a><br \/>\n\t\t&lt;\/div&gt;<\/p>\n<p>        &lt;div class=&#8221;col-xs-12 col-sm-9 pull-left&#8221;&gt;<br \/>\n       \t\t&lt;h3 &gt;<a>&#8220;&gt;&lt;?php the_title(); ?&gt;<\/a>&lt;\/h3&gt;<br \/>\n\t\t\t&lt;p&gt;<strong>&lt;?php echo tribe_get_start_date($post-&gt;ID, true, &#8216;l j.m.y&#8217;); ?&gt;<\/strong> @ &lt;?php echo tribe_get_venue_link() ?&gt;&lt;\/p&gt;<br \/>\n        \t&lt;?php the_excerpt(); ?&gt;<br \/>\n\t\t&lt;\/div&gt;<\/p>\n<p>&lt;\/div&gt;<br \/>\n\t&lt;?php } \/\/endforeach ?&gt;<br \/>\n        &lt;?php wp_reset_query(); ?&gt;<br \/>\n&lt;!&#8211; TRIBE EVENTS end &#8211;&gt;<\/p>\n<p>The problem is, that the day-limit won&#8217;t work. The result ist only limited post_per_page. Is that code old 2.0 code I copied? Please help!<\/p>\n","protected":false},"template":"","class_list":["post-99720","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>Day Limit doesn&#039;t work -<\/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\/day-limit-doesnt-work\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day Limit doesn&#039;t work -\" \/>\n<meta property=\"og:description\" content=\"Hi there, I made this template to show on my start-page: &lt;!&#8211; TRIBE EVENTS begin &#8211;&gt; &lt;?php global $post; $current_date = date(&#8216;j M Y&#8217;); $end_date = date(&#8216;j M Y&#8217;, strtotime(&#8216;1 days&#8217;)); $all_events = tribe_get_events( array( &#8216;eventDisplay&#8217;=&gt;&#8217;upcoming&#8217;, &#8216;posts_per_page&#8217;=&gt;99, &#8216;start_date&#8217;=&gt;$current_date, &#8216;end_date&#8217;=&gt;$end_date, ) ); foreach($all_events as $post) { setup_postdata($post); ?&gt; &lt;div class=&#8221;row events-list-item&#8221;&gt; &lt;div class=&#8221;col-xs-12 col-sm-3 pull-left&#8221;&gt; &#8220;&gt;&lt;?php [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/day-limit-doesnt-work\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-02-18T15:14:35+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\/day-limit-doesnt-work\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/day-limit-doesnt-work\/\",\"name\":\"Day Limit doesn&#039;t work -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-02-02T09:21:22+00:00\",\"dateModified\":\"2014-02-18T15:14:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/day-limit-doesnt-work\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/day-limit-doesnt-work\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/day-limit-doesnt-work\/#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\":\"Day Limit doesn&#039;t work\"}]},{\"@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":"Day Limit doesn&#039;t work -","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\/day-limit-doesnt-work\/","og_locale":"en_US","og_type":"article","og_title":"Day Limit doesn&#039;t work -","og_description":"Hi there, I made this template to show on my start-page: &lt;!&#8211; TRIBE EVENTS begin &#8211;&gt; &lt;?php global $post; $current_date = date(&#8216;j M Y&#8217;); $end_date = date(&#8216;j M Y&#8217;, strtotime(&#8216;1 days&#8217;)); $all_events = tribe_get_events( array( &#8216;eventDisplay&#8217;=&gt;&#8217;upcoming&#8217;, &#8216;posts_per_page&#8217;=&gt;99, &#8216;start_date&#8217;=&gt;$current_date, &#8216;end_date&#8217;=&gt;$end_date, ) ); foreach($all_events as $post) { setup_postdata($post); ?&gt; &lt;div class=&#8221;row events-list-item&#8221;&gt; &lt;div class=&#8221;col-xs-12 col-sm-3 pull-left&#8221;&gt; &#8220;&gt;&lt;?php [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/day-limit-doesnt-work\/","article_modified_time":"2014-02-18T15:14:35+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\/day-limit-doesnt-work\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/day-limit-doesnt-work\/","name":"Day Limit doesn&#039;t work -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-02-02T09:21:22+00:00","dateModified":"2014-02-18T15:14:35+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/day-limit-doesnt-work\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/day-limit-doesnt-work\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/day-limit-doesnt-work\/#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":"Day Limit doesn&#039;t work"}]},{"@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\/99720","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\/99720\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=99720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}