{"id":963785,"date":"2015-05-20T00:54:24","date_gmt":"2015-05-20T07:54:24","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/"},"modified":"2015-06-05T07:06:04","modified_gmt":"2015-06-05T14:06:04","slug":"how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/","title":{"rendered":"How to change Widget List View to show events by days of the current week?"},"content":{"rendered":"<p>Hi Guys, I am currently trying to customise the list-widget.php (don&#8217;t worry its in my theme folder!)<br \/>\nto look like this the layout below, <\/p>\n<ul>Monday<\/p>\n<li>Event Title &#8211; 1pm &#8211; 3pm<\/li>\n<li>Event Title &#8211; 4pm &#8211; 5:30pm<\/li>\n<li>Event Title &#8211; 6pm &#8211; 8pm<\/li>\n<\/ul>\n<ul>Tuesday<\/p>\n<li>Event Title &#8211; 1pm &#8211; 3pm<\/li>\n<li>Event Title &#8211; 4pm &#8211; 5:30pm<\/li>\n<li>Event Title &#8211; 6pm &#8211; 8pm<\/li>\n<\/ul>\n<ul>Wednesday<\/p>\n<li>Event Title &#8211; 1pm &#8211; 3pm<\/li>\n<li>Event Title &#8211; 4pm &#8211; 5:30pm<\/li>\n<li>Event Title &#8211; 6pm &#8211; 8pm<\/li>\n<\/ul>\n<ul>Thursday<\/p>\n<li>Event Title &#8211; 1pm &#8211; 3pm<\/li>\n<li>Event Title &#8211; 4pm &#8211; 5:30pm<\/li>\n<li>Event Title &#8211; 6pm &#8211; 8pm<\/li>\n<\/ul>\n<ul>Friday<\/p>\n<li>Event Title &#8211; 1pm &#8211; 3pm<\/li>\n<li>Event Title &#8211; 4pm &#8211; 5:30pm<\/li>\n<li>Event Title &#8211; 6pm &#8211; 8pm<\/li>\n<\/ul>\n<ul>Saturday<\/p>\n<li>Event Title &#8211; 1pm &#8211; 3pm<\/li>\n<li>Event Title &#8211; 4pm &#8211; 5:30pm<\/li>\n<li>Event Title &#8211; 6pm &#8211; 8pm<\/li>\n<\/ul>\n<ul>Sunday<\/p>\n<li>Event Title &#8211; 1pm &#8211; 3pm<\/li>\n<li>Event Title &#8211; 4pm &#8211; 5:30pm<\/li>\n<li>Event Title &#8211; 6pm &#8211; 8pm<\/li>\n<\/ul>\n<p><a href=\"http:\/\/webdev.brownsmart.co.uk\/chestnuts\/community-programmes\/\">Here is a manual example of what I have done&#8230;<\/a><\/p>\n<p>So far I have been able to change the code to do this <\/p>\n<pre><code>&lt;h5 class=&quot;entry-title summary&quot;&gt;\n\t\t\t\t\t&lt;a href=&quot;&lt;?php echo esc_url( tribe_get_event_link() ); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;, &lt;span class=&quot;event-duration&quot;&gt;\n\t\t\t\t\t&lt;?php echo tribe_get_start_time(); ?&gt; - &lt;?php echo tribe_get_end_time(); ?&gt;\n\t\t\t\t&lt;\/span&gt;\n\t\t\t\t&lt;\/h5&gt;<\/code><\/pre>\n<p>But I need it to loop through each day of the week, and produce it in the format above, and this I am little stumped on.<\/p>\n<p>Thanks for any tips of possible! <\/p>\n","protected":false},"template":"","class_list":["post-963785","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>How to change Widget List View to show events by days of the current week? -<\/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\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to change Widget List View to show events by days of the current week? -\" \/>\n<meta property=\"og:description\" content=\"Hi Guys, I am currently trying to customise the list-widget.php (don&#8217;t worry its in my theme folder!) to look like this the layout below, Monday Event Title &#8211; 1pm &#8211; 3pm Event Title &#8211; 4pm &#8211; 5:30pm Event Title &#8211; 6pm &#8211; 8pm Tuesday Event Title &#8211; 1pm &#8211; 3pm Event Title &#8211; 4pm &#8211; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-06-05T14:06:04+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\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/\",\"name\":\"How to change Widget List View to show events by days of the current week? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-05-20T07:54:24+00:00\",\"dateModified\":\"2015-06-05T14:06:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/#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\":\"How to change Widget List View to show events by days of the current week?\"}]},{\"@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":"How to change Widget List View to show events by days of the current week? -","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\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/","og_locale":"en_US","og_type":"article","og_title":"How to change Widget List View to show events by days of the current week? -","og_description":"Hi Guys, I am currently trying to customise the list-widget.php (don&#8217;t worry its in my theme folder!) to look like this the layout below, Monday Event Title &#8211; 1pm &#8211; 3pm Event Title &#8211; 4pm &#8211; 5:30pm Event Title &#8211; 6pm &#8211; 8pm Tuesday Event Title &#8211; 1pm &#8211; 3pm Event Title &#8211; 4pm &#8211; [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/","article_modified_time":"2015-06-05T14:06:04+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\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/","name":"How to change Widget List View to show events by days of the current week? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-05-20T07:54:24+00:00","dateModified":"2015-06-05T14:06:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-change-widget-list-view-to-show-events-by-days-of-the-current-week\/#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":"How to change Widget List View to show events by days of the current week?"}]},{"@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\/963785","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\/963785\/revisions"}],"predecessor-version":[{"id":963983,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/963785\/revisions\/963983"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=963785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}