• I have plugins Events Manager and Events Manager WPML Compatibility installed for a long time. They have worked correctly until now, but since version 5.8 the events in the calendar are duplicated, in languages.
    To solve it I had to modify the file “events-manager/classes/em-calendar.php”, in the function “get”, to remove duplicate posts.
    This is my code:


    if($events){
    //Go through the events and slot them into the right d-m index
    //new: remove duplicate posts
    $aux = [];

    foreach($events as $event) {
    $event = apply_filters(’em_calendar_output_loop_start’, $event);
    //new: remove duplicate posts
    if (!in_array($event[‘post_id’],$aux)){
    $aux[] = $event[‘post_id’];

    if( $long_events ){

    }//new
    }
    }

    I hope it can be resolved in the future.
    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    just to confirm, this is using the latest EM versions 5.8.1.1 ?

    Thread Starter afrigols

    (@afrigols)

    Yes, this is using WordPress version 4.9.1, EM version 5.8.1.1 and Events Manager and WPML Compatibility version 1.1

    I haven’t been able to replicate this. Are you seeing this in the standard full calendar only? Or is the events list also showing duplicates?

    Are you using the companion WP FullCalendar plugin? Thanks.

    Thread Starter afrigols

    (@afrigols)

    Events are duplicated only in the full calendar, not in the events list.

    The website has 4 languages: spanish, english, french, italian. The main language is spanish.
    The full calendar is ok in spanish, duplications occur in the other languages.

    I’m not using the plugin WP FullCalendar.

    Thanks.

    Can you post a link?

    Thread Starter afrigols

    (@afrigols)

    I can not tell you a link because the web is running and the duplicate data would be seen. I could pass you some screenshots by private.
    In the calendar the events are duplicated, but if I select that day, there are no duplicates.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I’m afraid that at the moment we are quite limited with regards to private communication or message.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Duplicate events in the calendar’ is closed to new replies.