{"id":1022273,"date":"2015-11-05T10:48:34","date_gmt":"2015-11-05T18:48:34","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/"},"modified":"2016-02-18T08:30:53","modified_gmt":"2016-02-18T16:30:53","slug":"the-events-for-a-particular-weekday-by-weekday","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/","title":{"rendered":"the events for a particular weekday by weekday"},"content":{"rendered":"<p>The following code used to give us all the events for a particular weekday by weekday. Can anyone tell me how to do it now with the changed API?<\/p>\n<p>&lt;?php<br \/>\n\/**<br \/>\n * Week List View Loop<br \/>\n * This file sets up the structure for the week list view loop<br \/>\n *<br \/>\n *\/<\/p>\n<p>\/\/error_reporting(E_ALL);<br \/>\n\/\/ini_set(&#8216;display_errors&#8217;, 1);<\/p>\n<p>if ( !defined(&#8216;ABSPATH&#8217;) ) { die(&#8216;-1&#8217;); } ?&gt;<\/p>\n<p>&lt;?php \/\/ Show hourly events only ?&gt;<br \/>\n&lt;?php tribe_events_week_set_loop_type( &#8216;hourly&#8217; ); ?&gt;<\/p>\n<p>&lt;div class=&#8221;events-list-view&#8221;&gt;<\/p>\n<p>\t&lt;?php while ( tribe_events_week_have_days() ) : tribe_events_week_the_day(); ?&gt;<br \/>\n\t&lt;?php if (tribe_events_current_week_day_has_events()) : ?&gt;<br \/>\n\t&lt;div id=&#8221;&lt;?php tribe_events_week_get_the_date(); ?&gt;&#8221; class=&#8221;day-wrapper&#8221;&gt;<br \/>\n\t\t&lt;?php \/\/ Header ?&gt;<\/p>\n<h2>&lt;span&gt;+&lt;\/span&gt;<br \/>\n\t\t\t&lt;?php echo get_formatted_date_title(tribe_events_week_get_the_date(false)); ?&gt;<br \/>\n\t\t<\/h2>\n<p>\t\t&lt;div class=&#8221;col colweek&#8221;&gt;<br \/>\n\t\t&lt;?php<br \/>\n\t\t\t\/\/ Backup global post<br \/>\n\t\t\tglobal $post;<br \/>\n\t\t\t$backup = $post;<\/p>\n<p>\t\t\t\/\/ Events loop<br \/>\n\t\t\tforeach ( tribe_events_week_get_hourly() as $event ) : if ( tribe_events_week_setup_event($event) ) :<\/p>\n<p>\t\t\t\t\/\/ This does the trick!<br \/>\n\t\t\t\t$event = tribe_events_week_get_event();<br \/>\n\t\t\t\t$post = $event;<br \/>\n\t\t?&gt;<br \/>\n\t\t\t&lt;div id=&#8221;post-&lt;?php the_ID() ?&gt;&#8221; class=&#8221;list-item event&#8221;&gt;<br \/>\n\t\t\t\t&lt;?php tribe_get_template_part( &#8216;week\/single&#8217;, &#8216;event&#8217; ) ?&gt;<br \/>\n\t\t\t&lt;\/div&gt;<br \/>\n\t\t&lt;?php endif; endforeach;<\/p>\n<p>\t\t\t\/\/ Reset post value<br \/>\n\t\t\t$post = $backup;<br \/>\n\t\t?&gt;<br \/>\n\t    &lt;\/div&gt;<br \/>\n\t&lt;\/div&gt;<br \/>\n\t&lt;?php else: ?&gt;<br \/>\n\t&lt;div id=&#8221;&lt;?php tribe_events_week_get_the_date(); ?&gt;&#8221; class=&#8221;day-wrapper&#8221;&gt;<br \/>\n\t\t&lt;?php \/\/ Header ?&gt;<\/p>\n<h2>&lt;span&gt;+&lt;\/span&gt;<br \/>\n\t\t\t&lt;?php echo get_formatted_date_title(tribe_events_week_get_the_date(false)); ?&gt;<br \/>\n\t\t<\/h2>\n<p>\t\t&lt;div class=&#8221;col colweek&#8221;&gt;<br \/>\n\t\t\t&lt;p style=&#8221;margin: -15px 0px 30px 0px;&#8221;&gt;\u201cPlease note there are no organized activities scheduled for today but the parks are open for your enjoyment!\u201d &lt;\/p&gt;<br \/>\n\t    &lt;\/div&gt;<br \/>\n\t&lt;\/div&gt;<\/p>\n<p>\t&lt;?php endif; endwhile; ?&gt;<br \/>\n&lt;\/div&gt;<\/p>\n","protected":false},"template":"","class_list":["post-1022273","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>the events for a particular weekday by weekday -<\/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\/the-events-for-a-particular-weekday-by-weekday\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"the events for a particular weekday by weekday -\" \/>\n<meta property=\"og:description\" content=\"The following code used to give us all the events for a particular weekday by weekday. Can anyone tell me how to do it now with the changed API? &lt;?php \/** * Week List View Loop * This file sets up the structure for the week list view loop * *\/ \/\/error_reporting(E_ALL); \/\/ini_set(&#8216;display_errors&#8217;, 1); if [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-18T16:30:53+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\/the-events-for-a-particular-weekday-by-weekday\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/\",\"name\":\"the events for a particular weekday by weekday -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-11-05T18:48:34+00:00\",\"dateModified\":\"2016-02-18T16:30:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/#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\":\"the events for a particular weekday by weekday\"}]},{\"@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":"the events for a particular weekday by weekday -","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\/the-events-for-a-particular-weekday-by-weekday\/","og_locale":"en_US","og_type":"article","og_title":"the events for a particular weekday by weekday -","og_description":"The following code used to give us all the events for a particular weekday by weekday. Can anyone tell me how to do it now with the changed API? &lt;?php \/** * Week List View Loop * This file sets up the structure for the week list view loop * *\/ \/\/error_reporting(E_ALL); \/\/ini_set(&#8216;display_errors&#8217;, 1); if [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/","article_modified_time":"2016-02-18T16:30:53+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\/the-events-for-a-particular-weekday-by-weekday\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/","name":"the events for a particular weekday by weekday -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-11-05T18:48:34+00:00","dateModified":"2016-02-18T16:30:53+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the-events-for-a-particular-weekday-by-weekday\/#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":"the events for a particular weekday by weekday"}]},{"@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\/1022273","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1022273\/revisions"}],"predecessor-version":[{"id":1022545,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1022273\/revisions\/1022545"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1022273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}