WPML

Overview of the Issue

If you are using The Events Calendar in conjunction with WPML, links for instances of recurring events incorrectly point to the first event occurrence.

This happens when pages are set to “Translatable – use translation if available or fallback to default language”, and it affects the links on the original-language page too, not only on translations.

Workaround

Please, make sure of having a full backup of your site before proceeding.

Option 1

  • Go to WPMLSettingsPost Types Translation section.
  • Set your Pages as Translatable – only show translated items

Option 2

  • Open your theme’s functions.php file.
  • Add the following code:
    add_filter ('the_content', 'remove_wpml_filter', 98, 1);
    function remove_wpml_filter($content) {
    	global $wp_filter;
    	foreach ($wp_filter["the_content"]->callbacks[99] as $key => $value) {
    		if(str_contains($key, 'fix_fallback_links')){
    			remove_filter( 'the_content', $key, 99 );
    		}
    	}
    	return $content;
    }

All known issues

Need Help with This Issue?

Ask a support question and we’ll look into it with you.