Answer the question
In order to leave comments, you need to log in
How to implement geolocation in Wordpress?
Have a good day, I have a blog on wp, now the task is for users from different countries to see the blog in different languages, so that by default the language from which the user is connected is connected, for example Russia - Russian, Poland - Polish, please tell me how this is possible to implement what are the ways.
Answer the question
In order to leave comments, you need to log in
But what people won’t understand in any way is that you don’t need to decide for the user which language to show him.
You need to focus on the system.
To do this, browsers provide for sending the header accept-language
https://www.google.ru/webhp?sourceid=chrome-instan...
You can use geoip, take info about ip from here.
https://www.maxmind.com/en/geoip2-services-and-dat...
You can use this plugin:
https://github.com/yellowtree/wp-geoip-detect
After determining the user's location, you can redirect via .htaccess or config to the site the user needs (with the desired language)
Also, there are these plugins in the vp admin panel, you can look there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question