{"id":21297,"date":"2012-06-28T13:06:08","date_gmt":"2012-06-28T20:06:08","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/"},"modified":"2012-08-09T15:07:11","modified_gmt":"2012-08-09T22:07:11","slug":"leave-one-category-out-of-list-view-and-nextprevious-event-wpml","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/","title":{"rendered":"Leave one category out of list view and &quot;next\/previous event&quot;? +WPML"},"content":{"rendered":"<p>I am using the events calendar pro together with WPML, and have mostly gotten things working by using<br \/> <code><br \/> $locale = get_locale();<br \/> if ($locale == nb_NO) { (...and so on...)<br \/> <\/code><br \/> to get different queries (the norwegian version of the category in one query, and the english version in the other). Mostly this works fine, but there are a few places there are some problems:<\/p>\n<p>Is it possible to leave one or more categories out of the &#8220;next\/previous events&#8221;-links (tribe_previous_event_link) on the bottom of the single events template?<\/p>\n<p>I have tried using &#8220;hide from list of upcoming events&#8221;, but the still shows up in the &#8220;next\/previous&#8221;-links on single events :\/<\/p>\n<p>Also, the same thing happens with the norwegian\/english versions of the events: when I&#8217;m on one of &#8220;norwegian&#8221; events, I get one link to the same event in english (of course, since it is at the same time, just a different language\/category), and one to the event before, also in english.<\/p>\n<p>The ideal solution would probably be if I could modify tribe_previous_event_link() and tribe_next_event_link() to only show next\/previous-links &#8220;within&#8221; the current category, then the norwegian\/english-issues would be solved, and links to rehearsals and other &#8220;private&#8221; events would only show up if you were already viewing one.<\/p>\n<p>Could someone give me a hand with this?<\/p>\n","protected":false},"template":"","class_list":["post-21297","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>Leave one category out of list view and &quot;next\/previous event&quot;? +WPML -<\/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\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Leave one category out of list view and &quot;next\/previous event&quot;? +WPML -\" \/>\n<meta property=\"og:description\" content=\"I am using the events calendar pro together with WPML, and have mostly gotten things working by using $locale = get_locale(); if ($locale == nb_NO) { (...and so on...) to get different queries (the norwegian version of the category in one query, and the english version in the other). Mostly this works fine, but there [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/\" \/>\n<meta property=\"article:modified_time\" content=\"2012-08-09T22:07:11+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\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/\",\"name\":\"Leave one category out of list view and &quot;next\/previous event&quot;? +WPML -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2012-06-28T20:06:08+00:00\",\"dateModified\":\"2012-08-09T22:07:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/#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\":\"Leave one category out of list view and &quot;next\/previous event&quot;? +WPML\"}]},{\"@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":"Leave one category out of list view and &quot;next\/previous event&quot;? +WPML -","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\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/","og_locale":"en_US","og_type":"article","og_title":"Leave one category out of list view and &quot;next\/previous event&quot;? +WPML -","og_description":"I am using the events calendar pro together with WPML, and have mostly gotten things working by using $locale = get_locale(); if ($locale == nb_NO) { (...and so on...) to get different queries (the norwegian version of the category in one query, and the english version in the other). Mostly this works fine, but there [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/","article_modified_time":"2012-08-09T22:07:11+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\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/","name":"Leave one category out of list view and &quot;next\/previous event&quot;? +WPML -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2012-06-28T20:06:08+00:00","dateModified":"2012-08-09T22:07:11+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/leave-one-category-out-of-list-view-and-nextprevious-event-wpml\/#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":"Leave one category out of list view and &quot;next\/previous event&quot;? +WPML"}]},{"@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\/21297","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\/21297\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=21297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}