{"id":1063421,"date":"2016-01-27T14:05:09","date_gmt":"2016-01-27T22:05:09","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/"},"modified":"2016-02-01T13:02:11","modified_gmt":"2016-02-01T21:02:11","slug":"page-title-tags","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/","title":{"rendered":"Page Title Tags"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I&#8217;m using some of your snippets to clean up the default &lt;title&gt; tags for my Event Calendar. Yoast SEO has begun to remove references to wp_title function since WordPress core has begun to remove it. Thus, I need to update the snippets so that they will continue to display the correct page titles.<\/p>\n<p>1. How can I get the page titles for month view (e.g. Events for January 2016) to display in that view? I am guessing it is something similar to what I have for Day View, but I&#8217;m not sure what should be changed:<\/p>\n<pre><code>$title = sprintf(\n&#039;Events for %1$s&#039;,\ndate_i18n( tribe_get_date_format( true ), strtotime( $wp_query-&gt;get( &#039;start_date&#039; ) ) )\n);<\/code><\/pre>\n<p>2. Likewise, for the Single Event pages, what can be used to display the current event&#8217;s title in the &lt;title&gt; tag?<\/p>\n<p>3. I&#8217;ve noticed that while the source code for the &lt;title&gt; tags stays correct, when anything is appended to the URLs (the user changes pages via Next Events or Previous Events, or any search criteria is submitted via the Tribe Bar or Filter Bar), that the title display in the browser reverts back to the default page title, while the source code continues to display the correct page title. Do search engines only use the &lt;title&gt; tag from the page&#8217;s source code to display the page titles on their pages? If so, this is not a big deal, as it would only effect a user who is bookmarking the page or when they look at the top of their browser window. However, if search engines grab the title that is displayed in the top of the browser window, then this would be a big deal since they&#8217;d be displaying incorrect page title (I think due to the Javascript that changes the page titles when new events are displayed).<\/p>\n<p>Thank you,<br \/>\nKarly<\/p>\n","protected":false},"template":"","class_list":["post-1063421","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>Page Title Tags -<\/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\/page-title-tags\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Page Title Tags -\" \/>\n<meta property=\"og:description\" content=\"Hi, I&#8217;m using some of your snippets to clean up the default &lt;title&gt; tags for my Event Calendar. Yoast SEO has begun to remove references to wp_title function since WordPress core has begun to remove it. Thus, I need to update the snippets so that they will continue to display the correct page titles. 1. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-01T21:02: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=\"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\/page-title-tags\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/\",\"name\":\"Page Title Tags -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-01-27T22:05:09+00:00\",\"dateModified\":\"2016-02-01T21:02:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/#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\":\"Page Title Tags\"}]},{\"@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":"Page Title Tags -","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\/page-title-tags\/","og_locale":"en_US","og_type":"article","og_title":"Page Title Tags -","og_description":"Hi, I&#8217;m using some of your snippets to clean up the default &lt;title&gt; tags for my Event Calendar. Yoast SEO has begun to remove references to wp_title function since WordPress core has begun to remove it. Thus, I need to update the snippets so that they will continue to display the correct page titles. 1. [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/","article_modified_time":"2016-02-01T21:02:11+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\/page-title-tags\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/","name":"Page Title Tags -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-01-27T22:05:09+00:00","dateModified":"2016-02-01T21:02:11+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-tags\/#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":"Page Title Tags"}]},{"@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\/1063421","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\/1063421\/revisions"}],"predecessor-version":[{"id":1063510,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1063421\/revisions\/1063510"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1063421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}