Home > Programming, Servers & Scripts >

Show user's location on Wordpress site (3)


01-24-2019 09:17 AM #1 stylerco (Member)
Show user's location on Wordpress site

Hey!

I want to show the user's location on my Wordpress site. I have tried several scripts, plugins with no success what so ever. Someone must to have the same challenge in the past here that is why I really hope to get a solution here

Looking forward for replies

Thanks!


01-24-2019 11:36 AM #2 patmue (Member)

You can look here https://dev.maxmind.com/geoip/ You can code you a small plugin which parse your text on your site and replace a placeholder like {city} with the corresponding City of the user.


01-24-2019 12:06 PM #3 matuloo (Legendary Moderator)

Quote Originally Posted by stylerco View Post
Hey!

I want to show the user's location on my Wordpress site. I have tried several scripts, plugins with no success what so ever. Someone must to have the same challenge in the past here that is why I really hope to get a solution here

Looking forward for replies

Thanks!
I think you need some DB installed on your server for it to work, maxmind that patmue mentioned would be one choice.

Or you can use a premium WP plugin such as : https://geotargetingwp.com/pricing But their prices are kinda high.

This plugin looks like it could be able to pull the info from cloudfare for example, in case you are using it : https://wordpress.org/plugins/geotargeting/

The best would be to talk with your host and ask about the possibilities to get a GEO DB installed and find a plugin that would work with it.


Home > Programming, Servers & Scripts >