• Resolved hanheg

    (@hanheg)


    Hi guys,

    I use this shortcode to list events:
    [ecs-list-events cat=’test’ limit=’5′]

    It fails on recurring events. See the example page.
    On whatever event you click you end up on the first event of 3 october.

    How can I make the recurring events link to the correct date?

    thank you,

    Han

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brian Hogg

    (@brianhogg)

    Hi @hanheg !

    Definitely strange – I’ve tested with a recurring event (using The Events Calendar PRO) and I’m not able to replicate the issue. The links are generated by their own tribe_get_event_link function, which should link to the correct instance of the recurring event.

    There may be code in another plugin or your theme causing the link to go to a different instance instead. You can determine which plugin or theme is causing the issue with the following steps:

    1. Ensure you have a backup of your site in case there are any issues when disabling/enabling plugins or your theme
    2. Disable all plugins (except The Events Calendar, The Events Calendar PRO, and this plugin), and switch to a default theme like Twenty Twenty then verify the issue is resolved
    3. Re-enable your plugins and switch back to your previous theme one by one verifying if the issue is still occurring, and note which one causes it to break

    Let me know which plugin/theme causes the issue as I may be able to come up with a workaround, but most likely you’ll also need to contact the theme or plugin author and have them fix the issue.

    Cheers!

    Thread Starter hanheg

    (@hanheg)

    Hi Brian,

    I turned off all other plugins, but still got the same wrong link to the first item of the recurring event.

    Than I also switched to the standard 2020 theme and that did not work either.
    Than it did not list the events anymore but spit out all recurring events several times. See https://www.utrechtindialoog.nl/staging/test-page/

    So that does not help. Any other ideas?

    Plugin Author Brian Hogg

    (@brianhogg)

    Hi @hanheg !

    Thanks for testing the default theme and disabling other plugins, it actually looks like it’s fixed. If you click on the links you’ll see it goes to the correct instance of the test series of events (ie. 23 Oct and 30 Oct).

    If you’d like to see what is causing the links to break you can re-enable the previous theme and your plugins one by one, and see which causes it to link to the 3 Oct instance again.

    The “Recurring event (see all)” output is the default detail provided by The Events Calendar, which shows the exact dates if you’ve picked exact dates in a series. If instead you created a recurring event that was (say) every week, it would show less detail.

    You can hide the recurring detail if desired with a little CSS, ie.

    
    .ecs-event-list .recurringinfo { 
       display: none;
    }
    

    There’s a video here I made on how to add the CSS and help finding what to change in case it’s needed:

    or a longer version with more examples of finding rules to override:

    Hope that helps!

    Thread Starter hanheg

    (@hanheg)

    Hi Brian,

    thanks for your elaborate respons. I missed those links, they are correct indeed.
    I now turned on the normal theme. Still working fine.

    But as soon as I turn on WPML the links go wrong again.
    So it appears to be an incompatibility with WPML.

    Is there anything to do about that?

    thanks, Han

    Plugin Author Brian Hogg

    (@brianhogg)

    Hi Han!

    Since I’m not able to replicate, best bet would be to reach out to WPML and/or Modern Tribe (makers of The Events Calendar PRO) and see if they have any thoughts as we’re using their own tribe_get_event_link to generate it.

    I see a number of threads on the WPML support forums which might shed some light, for example:

    https://wpml.org/forums/topic/wpml-with-events-calendar-pro-recurring-events-and-updates-not-working/#post-4318489

    If they have any suggestions let me know, and likewise if I see anything that could be changed on our end will issue an update.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Event series link wrong to first event’ is closed to new replies.