{"id":939362,"date":"2015-02-02T06:09:24","date_gmt":"2015-02-02T14:09:24","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/"},"modified":"2015-02-04T07:39:37","modified_gmt":"2015-02-04T15:39:37","slug":"template-issue-after-updating-from-3-6-1-to-3-9-1","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/","title":{"rendered":"Template issue after updating from 3.6.1 to 3.9.1"},"content":{"rendered":"<p>Hey Guys,<\/p>\n<p>I have a dev site running with some custom function to sort out missing page titles in my template &#8211; this was all working well and appears to work after the update, however I find the code is messing with my menus when I am viewing an event (they are fine in list\/photo view) &#8211; the code I am using is:<\/p>\n<p>Use Template Title Area (Fixes missing Titles on Single Event and Calender views. Also fixes Upcoming\/Past Events Titles.<br \/>\n\t================================================== *\/<\/p>\n<p>   add_filter( &#8216;the_title&#8217;, &#8216;tribe_restore_title&#8217; );<\/p>\n<p>function tribe_restore_title($title) {<br \/>\n\tglobal $wp_query;<br \/>\n\tglobal $post;<\/p>\n<p>\tif ( 0 !== $post-&gt;ID ) return $title;<br \/>\n\tif ( ! isset( $wp_query-&gt;tribe_is_event ) || ! $wp_query-&gt;tribe_is_event ) return $title;<br \/>\n\tif ( ! is_a( $wp_query-&gt;posts[0], &#8216;WP_Post&#8217; ) || $wp_query-&gt;posts[0]-&gt;ID == $post-&gt;ID ) return $title;<\/p>\n<p>\tif ( is_singular() ) return $wp_query-&gt;posts[0]-&gt;post_title;<\/p>\n<p>\tif ( tribe_is_upcoming() ) {<br \/>\n$title = __(&#8216;Upcoming Events&#8217;, &#8216;tribe-events-calendar&#8217;);<br \/>\n}<\/p>\n<p>\telse <\/p>\n<p>\treturn tribe_get_events_title();<br \/>\n}<\/p>\n<p>&#8212;-&gt;<\/p>\n<p>Not sure what has changed with your plugin for this to now occur &#8211; perhaps you can take a look?<\/p>\n<p>I also had 404 issues on certain views so had to disable them and just use photo view &#8211; I had determined this to be a WPML issue but having now disabled it (we will not require it so it will be removed) I still get 404&#8217;s on this version also. (I have not checked the 404 issue with plugins off but will do so asap, more concerned about the menu issue.<\/p>\n","protected":false},"template":"","class_list":["post-939362","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>Template issue after updating from 3.6.1 to 3.9.1 -<\/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\/template-issue-after-updating-from-3-6-1-to-3-9-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Template issue after updating from 3.6.1 to 3.9.1 -\" \/>\n<meta property=\"og:description\" content=\"Hey Guys, I have a dev site running with some custom function to sort out missing page titles in my template &#8211; this was all working well and appears to work after the update, however I find the code is messing with my menus when I am viewing an event (they are fine in list\/photo [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-02-04T15:39:37+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\/template-issue-after-updating-from-3-6-1-to-3-9-1\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/\",\"name\":\"Template issue after updating from 3.6.1 to 3.9.1 -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-02-02T14:09:24+00:00\",\"dateModified\":\"2015-02-04T15:39:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/#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\":\"Template issue after updating from 3.6.1 to 3.9.1\"}]},{\"@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":"Template issue after updating from 3.6.1 to 3.9.1 -","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\/template-issue-after-updating-from-3-6-1-to-3-9-1\/","og_locale":"en_US","og_type":"article","og_title":"Template issue after updating from 3.6.1 to 3.9.1 -","og_description":"Hey Guys, I have a dev site running with some custom function to sort out missing page titles in my template &#8211; this was all working well and appears to work after the update, however I find the code is messing with my menus when I am viewing an event (they are fine in list\/photo [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/","article_modified_time":"2015-02-04T15:39:37+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\/template-issue-after-updating-from-3-6-1-to-3-9-1\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/","name":"Template issue after updating from 3.6.1 to 3.9.1 -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-02-02T14:09:24+00:00","dateModified":"2015-02-04T15:39:37+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-issue-after-updating-from-3-6-1-to-3-9-1\/#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":"Template issue after updating from 3.6.1 to 3.9.1"}]},{"@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\/939362","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\/939362\/revisions"}],"predecessor-version":[{"id":939524,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/939362\/revisions\/939524"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=939362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}