{"id":954113,"date":"2015-04-08T10:43:48","date_gmt":"2015-04-08T17:43:48","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/"},"modified":"2015-04-13T08:46:15","modified_gmt":"2015-04-13T15:46:15","slug":"changing-date-on-calendar-breaks-url-and-shortcodes","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/","title":{"rendered":"Changing date on calendar breaks URL and shortcodes"},"content":{"rendered":"<p>Hello Tribe,<br \/>\nI have found a fairly complicated bug but I will do my best to explain my problem. <\/p>\n<p>Important info:<br \/>\nI am using Day and Month views<br \/>\nI am using short codes on every event<br \/>\nNormally you can see short codes on day and month views. To fix this I am calling the_content and not the_excerpt<\/p>\n<p>The Problem:<br \/>\nEverything works fine if I just got to day or month view but if I use the search by date function I get my problem.<br \/>\nAt this point two unwanted things happen. First, my short codes stop working. Second, the URL is in the incorrect format. Normally if a specific date is selected on month view the URL will look like this:<\/p>\n<p>\/events\/month\/?tribe-bar-date=2015-04<\/p>\n<p>If you use the date search on month view you get this:<\/p>\n<p>\/events\/2015-04\/<\/p>\n<p>You get the same problem if you use the previous or next month navigation at the bottom of the calendar. Even though it is incorrect this normally doesn&#8217;t cause a problem. In my case it does because of the way I am using short codes. If the URL is in the correct format (\/events\/month\/?tribe-bar-date=2015-04) the shortcodes work. There is a similar problem if you got to day view (I haven&#8217;t tested the others). The way I know that \/events\/month\/?tribe-bar-date=2015-04 is the correct format is because when you select a specific date then switch from one view to another you get the correct format. <\/p>\n<p>During my tests I have deactivated all other plugins and set the theme to the Default 2015 WP Theme. You can even see this problem in your example install at http:\/\/wpshindig.com\/events\/month\/<\/p>\n<p>I hope this fully explains my problem. Please let me know if there is any more explanation required.<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-954113","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>Changing date on calendar breaks URL and shortcodes -<\/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\/changing-date-on-calendar-breaks-url-and-shortcodes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Changing date on calendar breaks URL and shortcodes -\" \/>\n<meta property=\"og:description\" content=\"Hello Tribe, I have found a fairly complicated bug but I will do my best to explain my problem. Important info: I am using Day and Month views I am using short codes on every event Normally you can see short codes on day and month views. To fix this I am calling the_content and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-04-13T15:46:15+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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/\",\"name\":\"Changing date on calendar breaks URL and shortcodes -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-04-08T17:43:48+00:00\",\"dateModified\":\"2015-04-13T15:46:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/#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\":\"Changing date on calendar breaks URL and shortcodes\"}]},{\"@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":"Changing date on calendar breaks URL and shortcodes -","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\/changing-date-on-calendar-breaks-url-and-shortcodes\/","og_locale":"en_US","og_type":"article","og_title":"Changing date on calendar breaks URL and shortcodes -","og_description":"Hello Tribe, I have found a fairly complicated bug but I will do my best to explain my problem. Important info: I am using Day and Month views I am using short codes on every event Normally you can see short codes on day and month views. To fix this I am calling the_content and [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/","article_modified_time":"2015-04-13T15:46:15+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/","name":"Changing date on calendar breaks URL and shortcodes -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-04-08T17:43:48+00:00","dateModified":"2015-04-13T15:46:15+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-date-on-calendar-breaks-url-and-shortcodes\/#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":"Changing date on calendar breaks URL and shortcodes"}]},{"@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\/954113","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\/954113\/revisions"}],"predecessor-version":[{"id":954176,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/954113\/revisions\/954176"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=954113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}