Support » Plugin: The Events Calendar » [Plugin: The Events Calendar] Lots of links added on the sitemap

  • Resolved alesub



    The sitemap generated by yoast wordpress seo plugin is detecting a bunch of links with the following form:

    Obviously the links lead to a broken page.

    Anyone else having the same issue?

    Except for this issue I recently discover, I must say that this is a great, great plugin.


Viewing 2 replies - 1 through 2 (of 2 total)
  • I found the solution while diggin on their own forums:

    Locate the file /lib/the-events-calendar.class.php around line 602 and replace the function “addDateToRecurringEvents” with this:

    public function addDateToRecurringEvents($permalink, $post) {
    if( function_exists(‘tribe_is_recurring_event’) && $post->post_type == self::POSTTYPE && tribe_is_recurring_event($post->ID) && !is_search()) {
    if( is_admin() && (!isset($post->EventStartDate) || !$post->EventStartDate) ) {
    if( isset($_REQUEST['eventDate'] ) ) {
    $post->EventStartDate = $_REQUEST['eventDate'];
    } else	{
    $post->EventStartDate = TribeEvents::getRealStartDate( $post->ID );
    if(!isset($post->EventStartDate) || !$post->EventStartDate)
    return $permalink;
    if( ” == get_option(‘permalink_structure’) ) {
    return add_query_arg(‘eventDate’, TribeDateUtils::dateOnly( $post->EventStartDate ), $permalink );
    } else {
    return trailingslashit($permalink) . TribeDateUtils::dateOnly( isset($post->EventStartDate) ? $post->EventStartDate : null );
    return $permalink;
    Plugin Author Rob La Gatta


    Awesome to hear you got this figured, alesub, and sorry to hear you had to “go it alone” before we had the opportunity to respond directly.

    Sounds like you’re all set for now…but if we can do anything else in the future please let us know. Thanks again for your support; if you find yourself with a minute, we really would appreciate a vote of confidence via a “Works” or positive star rating here on the dot-org repo.

    Cheers man.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: The Events Calendar] Lots of links added on the sitemap’ is closed to new replies.