- Status
- Resolved
- Related plugin/theme
- Events Manager
Overview of the issue
When the Sticky Links plugin is activated along with WPML core plugin, other required WPML add-ons, and the Events Manager plugin, the link of a secondary language page that is added to an event redirects to a wrong page.
The issue happens because the Sticky Links plugin applies a filter that converts all the sticky links back to be normal links with post slug and language configuration. Simultaneously, the Events Manager plugin applies another filter that results in a conflict that removes the changes that come from the Sticky Link plugin.
Workaround
As a workaround for this issue set the Sticky Links filter to have a lower priority so that it is executed after the Events Manager filter. This can be achieved by editing the ../wp-content/plugins/wpml-sticky-links/classes/class-wpml-sticky-links.php file and replacing the contents on the line 53.
Replace:
add_filter( 'the_content', array( $this, 'show_permalinks' ), 0 );
With:
add_filter( 'the_content', array( $this, 'show_permalinks' ), 100 );