Open

Topic Tags: Compatibility

Symptoms

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 );

 

4 Responses to “Events Manager – Wrong page redirection”

Leave a Reply

Please leave here comments about this page only.
For technical support and feature suggestions, head to our forum. We are waiting there!

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>