Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with the search tool on their website, which works fine in the primary language (French) but does not return any results in the secondary language (German). The theme used, Zourney, is not officially compatible with WPML, which might be causing the issue.
Solution:
We recommend contacting the theme's author to discuss a potential quick fix, as the theme needs to adapt its code to handle translated posts/results in multiple languages. Specifically, they can implement WPML hooks such as

wpml_object_id

and

wpml_switch_language

in their code. Links to these hooks are:

Additionally, you can invite the theme developers to join our GoGlobal program, where our developers will assist in making the theme compatible with WPML. More information can be found here: https://wpml.org/documentation/support/go-global-program/.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at WPML support forum.

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 1 reply, has 2 voices.

Last updated by Dražen Duvnjak 2 months, 1 week ago.

Assisted by: Dražen Duvnjak.

Author Posts
September 4, 2024 at 9:23 pm #16142739

mohamed-amineA

Background of the issue:
I am trying to use the search tool on my website (hidden link). The search works fine in the primary language (French), but it doesn't return any results in the secondary language (German). The theme's support suggested that the issue is with the WPML plugin. The issue can be seen on this page: hidden link.

Symptoms:
The search tool does not display results in the secondary language (German).

Questions:
Why does the search tool not display results in the secondary language (German)?
How can I fix the search functionality for the secondary language using WPML?

September 5, 2024 at 5:12 am #16143024

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for contacting us.

Theme Zourney is not officially compatible with WPML (https://wpml.org/theme/), so some issues may happen. I advise checking again with the theme author if there is a quick fix for this since they would need to adapt the code also to get translated post/results not only the default language.

They can use WPML hook in their code like wpml_object_id or wpml_switch_language:

- https://wpml.org/wpml-hook/wpml_object_id/
- https://wpml.org/wpml-hook/wpml_switch_language/

Other than that you can invite them to our GoGlobal program and our devs will be glad to help them in making this product compatible with WPML. (https://wpml.org/documentation/support/go-global-program/)

We can not adapt and adjust their product code, it would be needed for their collaboration on this work also. Hope this makes sense.

Regards,
Drazen