{"id":1399230,"date":"2017-12-06T02:35:04","date_gmt":"2017-12-06T10:35:04","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/"},"modified":"2017-12-06T02:35:04","modified_gmt":"2017-12-06T10:35:04","slug":"tribe_events_event_schedule_details-remove-double-month-names","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/","title":{"rendered":"tribe_events_event_schedule_details &#8230; remove double month names"},"content":{"rendered":"<p>I&#8217;m using this in (what I think is) a pretty heavily customized calendar website.<br \/>\nAnd one thing that irks me is that when I have an event going from the 5th to the 8th of December, it will show this:<\/p>\n<p><strong>05. December \u2013 08. December<\/strong><\/p>\n<p>I&#8217;d prefer it to show<\/p>\n<p><strong>05. \u2013 08. December<\/strong><\/p>\n<p>Of course just removing the first name of the month is stupid because if it&#8217;s from 29th November to 2nd December, you need the month.<\/p>\n<p>Is there a way to improve the <strong>tribe_events_event_schedule_details<\/strong> function to check if the start and end month are identical, then not display the first?<\/p>\n<p>I&#8217;m asking because I&#8217;ve started to re-build the tribe_events_event_schedule_details function with <strong>tribe_get_start_date( null, false, &#8216;d&#8217; )<\/strong> and <strong>tribe_get_start_date( null, false, &#8216;F&#8217; )<\/strong> and I&#8217;d start on doing a very complicated if-then-circus act &#8230; <\/p>\n<p>The site is not yet public, here&#8217;s a screenshot.<\/p>\n","protected":false},"template":"","class_list":["post-1399230","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>tribe_events_event_schedule_details ... remove double month names -<\/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\/tribe_events_event_schedule_details-remove-double-month-names\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"tribe_events_event_schedule_details ... remove double month names -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m using this in (what I think is) a pretty heavily customized calendar website. And one thing that irks me is that when I have an event going from the 5th to the 8th of December, it will show this: 05. December \u2013 08. December I&#8217;d prefer it to show 05. \u2013 08. December Of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/\" \/>\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\/tribe_events_event_schedule_details-remove-double-month-names\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/\",\"name\":\"tribe_events_event_schedule_details ... remove double month names -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-12-06T10:35:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/#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\":\"tribe_events_event_schedule_details &#8230; remove double month names\"}]},{\"@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":"tribe_events_event_schedule_details ... remove double month names -","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\/tribe_events_event_schedule_details-remove-double-month-names\/","og_locale":"en_US","og_type":"article","og_title":"tribe_events_event_schedule_details ... remove double month names -","og_description":"I&#8217;m using this in (what I think is) a pretty heavily customized calendar website. And one thing that irks me is that when I have an event going from the 5th to the 8th of December, it will show this: 05. December \u2013 08. December I&#8217;d prefer it to show 05. \u2013 08. December Of [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/","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\/tribe_events_event_schedule_details-remove-double-month-names\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/","name":"tribe_events_event_schedule_details ... remove double month names -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-12-06T10:35:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_event_schedule_details-remove-double-month-names\/#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":"tribe_events_event_schedule_details &#8230; remove double month names"}]},{"@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\/1399230","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\/1399230\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1399230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}