{"id":12414,"date":"2011-12-16T04:45:08","date_gmt":"2011-12-16T12:45:08","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/a-listing-of-all-event-categories\/"},"modified":"2015-07-03T17:00:04","modified_gmt":"2015-07-04T00:00:04","slug":"a-listing-of-all-event-categories","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/a-listing-of-all-event-categories\/","title":{"rendered":"A Listing of all Event Categories"},"content":{"rendered":"<p>Hey everybody, I am new to php and WordPress Coding. I did some research to fix my problem and also found a solution which did it for me half the way. If I have overseen any solution posted alreadysomewhere else, please forgive me. \ud83d\ude09  Anyways, here we go: <\/p>\n<p>I&#8217;d like to modify the List View (list.php) in that way that it displays a Listing of all available Event Categories on top linked to a category listing. I found this code over at the WP Forum: <\/p>\n<p> 0 ){<br \/>\n \t\t    echo &#8220;&#8221;;<br \/>\n \t\t    foreach ( $terms as $term ) {<br \/>\n \t\t      echo &#8220;<a>name.&#8221; &#8216;&gt;&#8221; . $term-&gt;name . &#8220;<\/a>&#8220;;<\/p>\n<p> \t\t    }<br \/>\n \t\t    echo &#8220;&#8221;;<br \/>\n \t\t}<\/p>\n<p>\t?&gt;<\/p>\n<p>It works but it has got a problem with putting the right links into action. For one Category (&#8220;Masterclass&#8221;) it links to this kind of link &#8220;myurl.com\/events\/category\/Masterclass&#8221; which doesn&#8217;t exist in my installation because it was localized to Spain thus the right link would be &#8220;myurl.com\/events\/categoria\/Masterclass&#8221;. How can I change the above code to use the right localization for &#8220;Category&#8221;?<br \/>\nThe second Category in the listing (&#8220;Workshop&#8221;) sends me to &#8220;myurl.com\/2011\/12\/workshops&#8221; which is even more strange since this category is basically not existing since it is called &#8220;workshop&#8221; inside Events Calendar. It seems it has got something to do with the &#8220;newest Event&#8221; that was posted which resides also in this category&#8230; But I am not sure about this. It&#8217;s a guess. <\/p>\n<p>Again, what I need is a simple template tag that provides a linked list to all available categories like it works with usual blogpost. <\/p>\n<p>Thanks for you help in advance and greetings from rainy cold Berlin City. <\/p>\n<p>Cheers<\/p>\n<p>Christoph<\/p>\n","protected":false},"template":"","class_list":["post-12414","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>A Listing of all Event Categories -<\/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\/a-listing-of-all-event-categories\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Listing of all Event Categories -\" \/>\n<meta property=\"og:description\" content=\"Hey everybody, I am new to php and WordPress Coding. I did some research to fix my problem and also found a solution which did it for me half the way. If I have overseen any solution posted alreadysomewhere else, please forgive me. \ud83d\ude09 Anyways, here we go: I&#8217;d like to modify the List View [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/a-listing-of-all-event-categories\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-04T00:00: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\/a-listing-of-all-event-categories\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/a-listing-of-all-event-categories\/\",\"name\":\"A Listing of all Event Categories -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2011-12-16T12:45:08+00:00\",\"dateModified\":\"2015-07-04T00:00:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/a-listing-of-all-event-categories\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/a-listing-of-all-event-categories\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/a-listing-of-all-event-categories\/#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\":\"A Listing of all Event Categories\"}]},{\"@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":"A Listing of all Event Categories -","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\/a-listing-of-all-event-categories\/","og_locale":"en_US","og_type":"article","og_title":"A Listing of all Event Categories -","og_description":"Hey everybody, I am new to php and WordPress Coding. I did some research to fix my problem and also found a solution which did it for me half the way. If I have overseen any solution posted alreadysomewhere else, please forgive me. \ud83d\ude09 Anyways, here we go: I&#8217;d like to modify the List View [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/a-listing-of-all-event-categories\/","article_modified_time":"2015-07-04T00:00: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\/a-listing-of-all-event-categories\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/a-listing-of-all-event-categories\/","name":"A Listing of all Event Categories -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2011-12-16T12:45:08+00:00","dateModified":"2015-07-04T00:00:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/a-listing-of-all-event-categories\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/a-listing-of-all-event-categories\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/a-listing-of-all-event-categories\/#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":"A Listing of all Event Categories"}]},{"@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\/12414","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\/12414\/revisions"}],"predecessor-version":[{"id":975283,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/12414\/revisions\/975283"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=12414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}