Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter alesub

    (@alesub)

    I found the solution while diggin on their own forums:
    https://tri.be/support/forums/topic/permalink-conflict-with-yoast-seo-on-recurring-events/#post-24072

    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;
    }

    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.