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

  1. alesub
    Posted 3 years ago #


    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.



  2. alesub
    Posted 3 years ago #

    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;
  3. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 3 years 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

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic