Home › Forums › Calendar Products › Events Calendar PRO › Thousands of URLs for every future date possible auto generated. Possible bug?
- This topic has 24 replies, 9 voices, and was last updated 11 years, 9 months ago by Rob.
-
AuthorPosts
-
July 2, 2012 at 11:02 pm #21434VincentParticipant
Thanks Jonah. Can you please confirm what the code is to add? The code on github doesn’t look correct and gives me an error. Do I just copy and paste the entire code into the bottom of my functions.php? For reference:
displaying == ‘day’ )
echo ”;
}July 3, 2012 at 11:16 am #21464JonahParticipantHi Vincent,
If you are getting an error it’s probably because you don’t need to paste in the opening PHP tag. Try just adding this at the bottom of your functions.php file:
if (class_exists( 'TribeEvents' ) )
add_action('wp_head','tribe_dont_index_day_views');function tribe_dont_index_day_views() {
$tribe_ecp = TribeEvents::instance();
if( $tribe_ecp->displaying == 'day' )
echo '';
}
– Jonah
July 3, 2012 at 11:25 am #21468JamieParticipantHi all,
I’ve tried the above nofollow code in the functions.php file which works for a single day view, but it doesn’t resolve the issue on calendar display pages: “http://url.com/events/2126-08” for instance. This is the majority of the “Possible outages” errors that Google Webmaster Tools keeps notifying me about. Does $tribe_ecp->displaying have a parameter that includes this calendar month view?Also, does the default setting need “follow” on these types of pages? I assume that’s how Google arrived at August of 2126 in the first place.
Thanks, Jamie
July 5, 2012 at 11:54 pm #21609JulienParticipantIt could be great if this bug would be fixed in next release. My website has more than 18 000 pages indexed ! This is very bad for my SEO !
July 6, 2012 at 10:05 am #21645VincentParticipantThanks Jonah. I added this to my functions.php. How can I know if it’s working? I assumed I would see a robots no-index meta tag in the html now, but didn’t see one. Is that what I should be looking for?
July 9, 2012 at 12:20 pm #21782RobMemberJulien: we are still working out the correct “one-size-fits-all” fix for this, but should have it in 2.0.9. The 2.0.8 release that’s coming out this week was under code-freeze before we got to this point so it regretably will not have the fix.
Vincent: how long ago did you add the code?
July 10, 2012 at 11:36 am #21875VincentParticipantI added the code on July 6th, shortly before I posted that comment. I have noticed a slow decrease in soft-404’s in webmaster tools, but was hoping to be able to confirm for myself if the code is working (by looking in the html for a no-index tag or something).
Thanks,
VinceJuly 12, 2012 at 11:12 am #22015RobMemberHey Vincent. Ah, thanks for confirming. At this point unfortunately the best way would just be to check in the decrease in 404s over time…
July 23, 2012 at 8:45 pm #22607SimonParticipantI too am seeing this error with a massive spike in soft 404s in GWT. I don’t have time to mess around so I’ve had to disallow /events/ in robots.txt. This is obviously a less-than-ideal solution.
July 24, 2012 at 11:23 am #22644RobMemberHey Simon. Thanks for confirming here; this is a bit outside my area of expertise but let me see if our dev Paul – who has been dealing with a related issue on the WordPress.org forum – could offer up anything here. Appreciate your patience so far.
-
AuthorPosts
- The topic ‘Thousands of URLs for every future date possible auto generated. Possible bug?’ is closed to new replies.