Skip Navigation

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

Problem:
The client is trying to set up language definition by IP on their site using WPML, but WPML does not support this functionality natively.
Solution:
We recommend using a third-party IP geolocation plugin or developing a custom solution to achieve language redirection based on IP address. For more details on how to implement this, you can refer to a similar discussion in our forum: https://wpml.org/forums/topic/country-based-redirect/#post-4843377.
If you encounter difficulties with the implementation, consider hiring a professional from our list of recommended contractors: https://wpml.org/contractors/.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. 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 these steps do not resolve your issue, please open a new support ticket for further assistance: Contact WPML Support.

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 3 replies, has 3 voices.

Last updated by Mateus Getulio 3 months, 2 weeks ago.

Assisted by: Mateus Getulio.

Author Posts
July 25, 2024 at 3:28 pm #16004590

denM

Background of the issue:
I am trying to set up language definition by IP for my site hidden link using WPML.

Symptoms:
No specific issue or error message mentioned.

Questions:
How can I set up language definition by IP using WPML?

July 25, 2024 at 3:54 pm #16004641

Marcel
Supporter

Languages: English (English ) German (Deutsch )

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

Hi,

before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

If I understand your question correctly, you're asking about redirecting based on the user's IP address, right?

We don't have that functionality. We only support redirects based on the active browser language setting. You would need to develop your own solution or use a specific IP geolocation plugin. For more details on how to achieve this, please see this ticket.

Best regards,
Marcel

July 29, 2024 at 6:13 pm #16017602

denM

I need the site to be rejected in the language of the IP address, as it is in the wpml settings

July 30, 2024 at 12:56 pm #16020637

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

I'm afraid that WPML doesn't have a built-in feature that would allow you to do it.

It'd be necessary to use some custom code and a third-party solution as described by my colleague in this thread:

https://wpml.org/forums/topic/country-based-redirect/#post-4843377

Please try to implement it and see how it goes.

If implementation becomes a roadblock, you might want to explore our list of Contractors for assistance: https://wpml.org/contractors/

Kind regards,
Mateus