{"id":905609,"date":"2014-12-02T14:46:50","date_gmt":"2014-12-02T22:46:50","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/"},"modified":"2014-12-18T06:58:25","modified_gmt":"2014-12-18T14:58:25","slug":"cant-re-write-single-event-pages-url-according-to-category-assigned","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/","title":{"rendered":"Cant re-write single event pages URL according to category assigned."},"content":{"rendered":"<p>We are scanning the URLs for the string and change the theme according to that, (our setup will make use of one calendar that changes skins, according to sub-sites), so in the event section we have three categories, each category represent separate theme.<br \/>\n* like &#8220;cat-one archive page&#8221;: http:\/\/site.com\/event-cat-one\/ &#8211; this page show the events from that category only &#8211; and the same is with the other two categories as well.<\/p>\n<p>Now the problem we are facing is we cant re-write the single event url according to the category, currently the single event page shows like this: http:\/\/site.com\/event\/event-slug.<br \/>\nWe need it like this: http:\/\/site.com\/event-cat-one\/single-event-slug.<\/p>\n<p>We are planning to add one category per event, not multiple categories for a single event. At any rate, if there are multiple categories associated with the single event, the URL according to the first category is in the categories array.<\/p>\n<p>Any suggestions? really needing help on this one. Much thanks!<\/p>\n","protected":false},"template":"","class_list":["post-905609","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>Cant re-write single event pages URL according to category assigned. -<\/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\/cant-re-write-single-event-pages-url-according-to-category-assigned\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cant re-write single event pages URL according to category assigned. -\" \/>\n<meta property=\"og:description\" content=\"We are scanning the URLs for the string and change the theme according to that, (our setup will make use of one calendar that changes skins, according to sub-sites), so in the event section we have three categories, each category represent separate theme. * like &#8220;cat-one archive page&#8221;: http:\/\/site.com\/event-cat-one\/ &#8211; this page show the events [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-12-18T14:58:25+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\/cant-re-write-single-event-pages-url-according-to-category-assigned\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/\",\"name\":\"Cant re-write single event pages URL according to category assigned. -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-12-02T22:46:50+00:00\",\"dateModified\":\"2014-12-18T14:58:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/#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\":\"Cant re-write single event pages URL according to category assigned.\"}]},{\"@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":"Cant re-write single event pages URL according to category assigned. -","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\/cant-re-write-single-event-pages-url-according-to-category-assigned\/","og_locale":"en_US","og_type":"article","og_title":"Cant re-write single event pages URL according to category assigned. -","og_description":"We are scanning the URLs for the string and change the theme according to that, (our setup will make use of one calendar that changes skins, according to sub-sites), so in the event section we have three categories, each category represent separate theme. * like &#8220;cat-one archive page&#8221;: http:\/\/site.com\/event-cat-one\/ &#8211; this page show the events [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/","article_modified_time":"2014-12-18T14:58:25+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\/cant-re-write-single-event-pages-url-according-to-category-assigned\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/","name":"Cant re-write single event pages URL according to category assigned. -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-12-02T22:46:50+00:00","dateModified":"2014-12-18T14:58:25+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cant-re-write-single-event-pages-url-according-to-category-assigned\/#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":"Cant re-write single event pages URL according to category assigned."}]},{"@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\/905609","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\/905609\/revisions"}],"predecessor-version":[{"id":922475,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/905609\/revisions\/922475"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=905609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}