Home › Forums › Calendar Products › Events Calendar PRO › Webmaster tools 404 crawl errors recurring events feed and upcoming events page
- This topic has 19 replies, 2 voices, and was last updated 10 years, 11 months ago by Barry.
-
AuthorPosts
-
June 12, 2013 at 5:43 am #51137BarryMember
Yes that does look like it is coming from Yoast’s plugin:
<!-- This site is optimized with the Yoast WordPress SEO plugin v1.4.7 - http://yoast.com/wordpress/seo/ -->
<meta name="robots" content="noodp,noydir"/>
<link rel="canonical" href="http://www.margaretriverguide.com.au/event/category/live-events/page/8/" />
<!-- / Yoast WordPress SEO plugin. -->(And thanks for bearing with me while we zeroed in on that.)
If you want to target past events only you could possibly use something like:
if (tribe_is_past()) { /* ... your WPSEO tweak */ }
You might also combine WordPress and The Events Calendar conditionals:
if (is_archive() and tribe_is_event()) { /* ... your WPSEO tweak */ }
If that sort of approach doesn’t work you could try a ‘dirtier’ approach of inspecting the request string and checking for the presence of elements such as the /events/ segment in the URL.
June 12, 2013 at 6:08 am #51141BenjiParticipantYey nice work Barry. Good team on this. the second code is working a charm
** remove canonical link from events archives */
function wpseo_canonical_exclude( $canonical ) {
global $post;
if (is_archive() and tribe_is_event()) {
$canonical = false;
}
return $canonical;
}
add_filter( ‘wpseo_canonical’, ‘wpseo_canonical_exclude’ );So all is now good. I think around 700 404s fixed with these two edits in this thread 🙂
I would like to ask if you have any knowledge of why the standard category archives are now playing up? eg
404: http://www.margaretriverguide.com.au/news/page/2
link from: http://www.margaretriverguide.com.au/news/I see this problem on a few categories archives (those which are paginated)
I have done the standard disable plugins and this did not work. I can not replicate the issue on my test site though? Any thoughts are welcome although I know this is not events calendar directly 🙂 but more a break in the theme.
Thank youJune 12, 2013 at 6:20 am #51146BarryMemberYeah it’s from the Previous Posts link right? I’m not sure without checking to see how the theme determines the need to display that link – which I’m afraid is outwith the support we can offer (since, as you say, it isn’t related to The Events Calendar).
Are the databases of your dev and production sites in synch – is it possible there is a difference in settings (or active plugins) that might explain why you see it on one and not the other?
June 12, 2013 at 11:10 pm #51230BenjiParticipantThank you. replicating issue now and seems to be in theme somewhere as with all plugins deactivated it still happens. Category slug being stripped from the URL. Any way all good as on to it.
FYI seems there were many more issues with 404s in webmaster tools and all I can see this being down to is a broken site map maker. seems all is good now with the changes we have done above and upgrading my site map plugin (now using Yoast wordpress SEO) Thanks againJune 13, 2013 at 8:55 pm #51302BarryMemberNo problem, hope you get on track with this. Since based on what you’ve told me I don’t think there are any more issues stemming from The Events Calendar itself I’ll go ahead and mark this closed, but please feel free to create new threads as needed for any further issues.
-
AuthorPosts
- The topic ‘Webmaster tools 404 crawl errors recurring events feed and upcoming events page’ is closed to new replies.