{"id":1036877,"date":"2015-12-07T07:32:34","date_gmt":"2015-12-07T15:32:34","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/"},"modified":"2016-02-18T08:32:17","modified_gmt":"2016-02-18T16:32:17","slug":"disabling-slug-warning-in-4-0","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/","title":{"rendered":"Disabling Slug Warning in 4.0"},"content":{"rendered":"<p>Greetings,<\/p>\n<p>The Events Calendar has the unfortunately frustrating behavior of displaying an error notice if you have a page that matches the slug of the Calendar. For many reasons it can be desirable to have that page for end users (e.g. so they can hit &#8220;Edit Page&#8221;, customize sidebars, etc.). The warning is as follows given a page and calendar slug of &#8220;calendar&#8221;:<\/p>\n<pre><code>\nThe page &quot;Calendar&quot; uses the &quot;\/calendar&quot; slug: the Events Calendar plugin will show its calendar in place of the page.\nEdit the page slug or edit Events settings.<\/code><\/pre>\n<p>Up until 4.0 the previous code was the recommendation on how to remove this warning:<\/p>\n<pre><code>if ( class_exists( &#039;Tribe__Events__Admin__Notice__Archive_Slug_Conflict&#039; ) ) {\n\tremove_action( &#039;admin_init&#039;, array( Tribe__Events__Admin__Notice__Archive_Slug_Conflict::instance(), &#039;maybe_add_admin_notice&#039; ) );\n}<\/code><\/pre>\n<p>The above method no longer works as of 4.0 to disable this undesirable warning that is confusing our users. Please let us know what the new preferred method is for handling this.<\/p>\n<p>In the future an option within The Events Calendar would be great, were this to be implemented as a Setting we would not need to go back into past sites to change this for the now second time. Thank you.<\/p>\n","protected":false},"template":"","class_list":["post-1036877","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>Disabling Slug Warning in 4.0 -<\/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\/disabling-slug-warning-in-4-0\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Disabling Slug Warning in 4.0 -\" \/>\n<meta property=\"og:description\" content=\"Greetings, The Events Calendar has the unfortunately frustrating behavior of displaying an error notice if you have a page that matches the slug of the Calendar. For many reasons it can be desirable to have that page for end users (e.g. so they can hit &#8220;Edit Page&#8221;, customize sidebars, etc.). The warning is as follows [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-18T16:32:17+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\/disabling-slug-warning-in-4-0\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/\",\"name\":\"Disabling Slug Warning in 4.0 -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-12-07T15:32:34+00:00\",\"dateModified\":\"2016-02-18T16:32:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/#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\":\"Disabling Slug Warning in 4.0\"}]},{\"@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":"Disabling Slug Warning in 4.0 -","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\/disabling-slug-warning-in-4-0\/","og_locale":"en_US","og_type":"article","og_title":"Disabling Slug Warning in 4.0 -","og_description":"Greetings, The Events Calendar has the unfortunately frustrating behavior of displaying an error notice if you have a page that matches the slug of the Calendar. For many reasons it can be desirable to have that page for end users (e.g. so they can hit &#8220;Edit Page&#8221;, customize sidebars, etc.). The warning is as follows [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/","article_modified_time":"2016-02-18T16:32:17+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\/disabling-slug-warning-in-4-0\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/","name":"Disabling Slug Warning in 4.0 -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-12-07T15:32:34+00:00","dateModified":"2016-02-18T16:32:17+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disabling-slug-warning-in-4-0\/#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":"Disabling Slug Warning in 4.0"}]},{"@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\/1036877","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\/1036877\/revisions"}],"predecessor-version":[{"id":1037012,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1036877\/revisions\/1037012"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1036877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}