WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Lots of links added on the sitemap (3 posts)

  1. alesub
    Member
    Posted 1 year ago #

    Hi,

    The sitemap generated by yoast wordpress seo plugin is detecting a bunch of links with the following form:
    domain.com/events/post-title/1979-01-01/

    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.

    Thanks!

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. alesub
    Member
    Posted 1 year ago #

    I found the solution while diggin on their own forums:
    http://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;
    }
  3. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic