{"id":961961,"date":"2015-05-11T14:17:13","date_gmt":"2015-05-11T21:17:13","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/"},"modified":"2015-05-12T11:59:50","modified_gmt":"2015-05-12T18:59:50","slug":"list-view-of-categories-stopped-working","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/","title":{"rendered":"List view of categories stopped working"},"content":{"rendered":"<p>I got some help from you a while back on setting up and override to make categories display in list view by default. It was working fine and now it stopped working. I think this might be because the Event Pro plugin has been updated. We get a message on the page that reads &#8220;No matching events listed under Classes. Please try viewing the full calendar for a complete list of events.&#8221; I am using a child theme and this is what is in the child&#8217;s function.php file, can you help me resolve this issue? Here&#8217;s the URL to the specific page. http:\/\/www.heartwoodcenter.com\/events\/category\/classes<\/p>\n<p>\/\/ Overrides every request for viewOption from TribeEvents::getOption()<br \/>\nfunction tribe_swap_default_category_view ($option, $default, $optionName) {<br \/>\n\/\/ For a list of acceptable views\/values run print_r(tribe_events_enabled_views());<br \/>\n$default_events_view = &#8216;month&#8217;; \/\/ The default view for the main page, venue, etc.<br \/>\n$default_category_view = &#8216;list&#8217;; \/\/ The default view for any calendar category<br \/>\nif ($optionName === &#8216;viewOption&#8217;) {<br \/>\n\/\/ Default category view is saved as a rewrite rule<br \/>\n\/\/ Every other view checks viewOption on front-end page load<br \/>\n\/\/ Hack: Since rewrites are usually only saved\/flushed from the admin area, check that<br \/>\nif( is_admin() ) {<br \/>\n$option = $default_category_view;<br \/>\n} else {<br \/>\n$option = $default_events_view;<br \/>\n}<br \/>\n}<br \/>\nreturn $option;<br \/>\n}<br \/>\nadd_filter(&#8216;tribe_get_single_option&#8217;, &#8216;tribe_swap_default_category_view&#8217;, 1, 3);<\/p>\n","protected":false},"template":"","class_list":["post-961961","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>List view of categories stopped working -<\/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\/list-view-of-categories-stopped-working\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"List view of categories stopped working -\" \/>\n<meta property=\"og:description\" content=\"I got some help from you a while back on setting up and override to make categories display in list view by default. It was working fine and now it stopped working. I think this might be because the Event Pro plugin has been updated. We get a message on the page that reads &#8220;No [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-05-12T18:59:50+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\/list-view-of-categories-stopped-working\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/\",\"name\":\"List view of categories stopped working -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-05-11T21:17:13+00:00\",\"dateModified\":\"2015-05-12T18:59:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/#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\":\"List view of categories stopped working\"}]},{\"@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":"List view of categories stopped working -","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\/list-view-of-categories-stopped-working\/","og_locale":"en_US","og_type":"article","og_title":"List view of categories stopped working -","og_description":"I got some help from you a while back on setting up and override to make categories display in list view by default. It was working fine and now it stopped working. I think this might be because the Event Pro plugin has been updated. We get a message on the page that reads &#8220;No [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/","article_modified_time":"2015-05-12T18:59:50+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\/list-view-of-categories-stopped-working\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/","name":"List view of categories stopped working -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-05-11T21:17:13+00:00","dateModified":"2015-05-12T18:59:50+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/list-view-of-categories-stopped-working\/#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":"List view of categories stopped working"}]},{"@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\/961961","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\/961961\/revisions"}],"predecessor-version":[{"id":962012,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/961961\/revisions\/962012"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=961961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}