{"id":1116622,"date":"2016-05-19T12:45:21","date_gmt":"2016-05-19T19:45:21","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/"},"modified":"2016-05-24T15:51:31","modified_gmt":"2016-05-24T22:51:31","slug":"soft-404s","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/","title":{"rendered":"Soft 404s"},"content":{"rendered":"<p>This has been an ongoing issue, and now I have some time to follow up on it.<br \/>\nWebmaster tools keeps reporting SOFT 404&#8217;s<br \/>\nHow do I resolve this?<\/p>\n<p>I have this to enable diagnostics:<\/p>\n<p>\/\/ This snippet adds diagnostic info to your sites &lt;head&gt; html comments<br \/>\n\/\/ If both is_404() &amp; tribe_is_event_query() == true, it will output a noindex meta tag<br \/>\n\/\/ Tribe should be doing this already, but some plugins &amp; themes strip these tags<br \/>\n\/\/ This function further tries to avoid stripping those tags by adding 100 priority to the action<br \/>\n\/\/ http:\/\/pastebin.com\/RANJbEsR<br \/>\nadd_action(&#8216;wp_head&#8217;, &#8216;tribe_noindex_on_404&#8217;, 100);<\/p>\n<p>function tribe_noindex_on_404() {<br \/>\n        $is_404 = is_404();<br \/>\n        $tribe_is_event_query = tribe_is_event_query();<\/p>\n<p>        $output =  &#8216;&lt;!&#8211; Tribe Index Test&#8217;.&#8221;\\n&#8221;;<br \/>\n        $output .= &#8216;is_404(): &#8216;.($is_404 ? &#8216;true&#8217; : &#8216;false&#8217;).&#8221;\\n&#8221;;<br \/>\n        $output .= &#8216;tribe_is_event_query(): &#8216;.($tribe_is_event_query ? &#8216;true&#8217; : &#8216;false&#8217;).&#8221;\\n&#8221;;<br \/>\n        $output .= &#8216;&#8211;&gt;&#8217;.&#8221;\\n&#8221;;<\/p>\n<p>        if ( $is_404 &amp;&amp; $tribe_is_event_query ) {<br \/>\n                $output .= &#8216;&lt;meta name=&#8221;robot&#8221; content=&#8221;noindex,follow&#8221; \/&gt;&#8217; . &#8220;\\n&#8221;;<br \/>\n        }<\/p>\n<p>        echo $output;<br \/>\n}<\/p>\n","protected":false},"template":"","class_list":["post-1116622","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>Soft 404s -<\/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\/soft-404s\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Soft 404s -\" \/>\n<meta property=\"og:description\" content=\"This has been an ongoing issue, and now I have some time to follow up on it. Webmaster tools keeps reporting SOFT 404&#8217;s How do I resolve this? I have this to enable diagnostics: \/\/ This snippet adds diagnostic info to your sites &lt;head&gt; html comments \/\/ If both is_404() &amp; tribe_is_event_query() == true, it [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-24T22:51:31+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\/soft-404s\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/\",\"name\":\"Soft 404s -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-05-19T19:45:21+00:00\",\"dateModified\":\"2016-05-24T22:51:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/#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\":\"Soft 404s\"}]},{\"@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":"Soft 404s -","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\/soft-404s\/","og_locale":"en_US","og_type":"article","og_title":"Soft 404s -","og_description":"This has been an ongoing issue, and now I have some time to follow up on it. Webmaster tools keeps reporting SOFT 404&#8217;s How do I resolve this? I have this to enable diagnostics: \/\/ This snippet adds diagnostic info to your sites &lt;head&gt; html comments \/\/ If both is_404() &amp; tribe_is_event_query() == true, it [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/","article_modified_time":"2016-05-24T22:51:31+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\/soft-404s\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/","name":"Soft 404s -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-05-19T19:45:21+00:00","dateModified":"2016-05-24T22:51:31+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/soft-404s\/#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":"Soft 404s"}]},{"@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\/1116622","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\/1116622\/revisions"}],"predecessor-version":[{"id":1116795,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1116622\/revisions\/1116795"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1116622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}