Problem:
The client is experiencing an issue with The Events Calendar Pro plugin where the titles of recurring events link to the first instance of the event instead of the correct instance when using the [tribe-events-list] shortcode. This issue occurs only when WPML is activated.
Solution:
We have identified two workarounds to address this issue (so far):
1. In WPML -> Settings -> Post Types Translation, set "Pages" to "Translatable - only show translated items".
2. If the first workaround is not suitable, add the following code to your theme's functions.php file:
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;
}