{"id":1047559,"date":"2015-12-28T16:35:54","date_gmt":"2015-12-29T00:35:54","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/"},"modified":"2016-02-18T08:33:29","modified_gmt":"2016-02-18T16:33:29","slug":"bug-tec-incompatible-with-yoast-seo","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/","title":{"rendered":"Bug: TEC incompatible with Yoast SEO"},"content":{"rendered":"<p>Hi,<\/p>\n<p>Found this issue with TEC being incompatible with the popular <a href=\"https:\/\/wordpress.org\/plugins\/wordpress-seo\/\" target=\"_blank\">Yoast SEO plugin<\/a>.<\/p>\n<p>The issue: When a Venue or Organizer is published, the slug\/url is set based on the title of the Event (and not the title of the Venue or Organizer). For example, if I create an event with the title &#8220;Testing Event Title Link&#8221; the slug of the Event will be \/event\/testing-event-title-link\/<br \/>\nIf the Venue submitted with that event is titled &#8220;Unique Venue Name&#8221; the slug should be \/venue\/unique-venue-name but instead it is \/venue\/testing-event-title-link\/<br \/>\nAlso, an Organizer titled &#8220;Organizer Unique Name&#8221; should be \/organizer\/organizer-unique-name\/ but instead it is \/organizer\/testing-event-title-link\/<\/p>\n<p>More info: when TEC creates the venue\/organizer in the first place it saves it with an empty slug (which is visible in WP-Admin for some reason, but not saved in the DB, it seems to be generated on the fly for WP-Admin) this shouldn\u2019t happen.<\/p>\n<p>Then, the WP SEO plugin has a function that filters the URL\u2026 https:\/\/github.com\/Yoast\/wordpress-seo\/blob\/ac395074f7122473d324153271c7a3d1aa70a9ff\/admin\/class-admin.php#L541 and this funcion doesn\u2019t execute when the post type has a non published status\u2026 but as soon as you publish the post, this function changes the slug for the main post\u2019s slug (generated from the title actually), which is the event post, instead of the venue post\u2026<\/p>\n","protected":false},"template":"","class_list":["post-1047559","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>Bug: TEC incompatible with Yoast SEO -<\/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\/bug-tec-incompatible-with-yoast-seo\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bug: TEC incompatible with Yoast SEO -\" \/>\n<meta property=\"og:description\" content=\"Hi, Found this issue with TEC being incompatible with the popular Yoast SEO plugin. The issue: When a Venue or Organizer is published, the slug\/url is set based on the title of the Event (and not the title of the Venue or Organizer). For example, if I create an event with the title &#8220;Testing Event [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-18T16:33:29+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\/bug-tec-incompatible-with-yoast-seo\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/\",\"name\":\"Bug: TEC incompatible with Yoast SEO -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-12-29T00:35:54+00:00\",\"dateModified\":\"2016-02-18T16:33:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/#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\":\"Bug: TEC incompatible with Yoast SEO\"}]},{\"@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":"Bug: TEC incompatible with Yoast SEO -","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\/bug-tec-incompatible-with-yoast-seo\/","og_locale":"en_US","og_type":"article","og_title":"Bug: TEC incompatible with Yoast SEO -","og_description":"Hi, Found this issue with TEC being incompatible with the popular Yoast SEO plugin. The issue: When a Venue or Organizer is published, the slug\/url is set based on the title of the Event (and not the title of the Venue or Organizer). For example, if I create an event with the title &#8220;Testing Event [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/","article_modified_time":"2016-02-18T16:33:29+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\/bug-tec-incompatible-with-yoast-seo\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/","name":"Bug: TEC incompatible with Yoast SEO -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-12-29T00:35:54+00:00","dateModified":"2016-02-18T16:33:29+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-tec-incompatible-with-yoast-seo\/#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":"Bug: TEC incompatible with Yoast SEO"}]},{"@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\/1047559","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1047559\/revisions"}],"predecessor-version":[{"id":1050133,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1047559\/revisions\/1050133"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1047559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}