Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 1 voice.

Last updated by Johannes Rohr 7 months, 1 week ago.

Author Posts
September 23, 2025 at 5:58 am #17423512

Johannes Rohr

Background of the issue:
I am trying to get WPML and CiviCRM to work together without WPML interfering with CiviCRM links. Specifically, WPML should not modify URLs like hidden link by inserting a two-letter language code.

Symptoms:
When WPML is enabled, it breaks the links to CiviCRM resources by inserting a two-letter language code into the URL, leading to a page not being found. Instead of the expected CiviCRM form, I get a generic placeholder page.

Questions:
How can I prevent WPML from modifying CiviCRM URLs? (everything where the path name begins with /civicrm)
What are the best practices for integrating WPML with CiviCRM without causing URL issues?

September 23, 2025 at 6:07 am #17423518

Johannes Rohr

I created and activated the snippet, yet the language code still gets inserted.

Also directly inserting the snippet into functions.php makes no difference.

September 23, 2025 at 6:19 am #17423527

Johannes Rohr

I've now inserted the snipped directly into functions.php and still there is no change.