Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i'm running a wordpress free classified website and the address is http://www.gosell.co.uk what i need is if a user from london open this url then it should be concatenated with http://www.gosell.co.uk/london or london.gosell.co.uk is that possible? shall i make a new function or wat? Thanks in advance.

share|improve this question
add comment

1 Answer

Try the wordpress maxmind plug-in. I've never used it myself, but it should do the heavy lifting of identifying a user's location by IP address.

You'll have to add some functions to dictate what to do with that data in terms of redirecting visitors (the plug-in only figures out where they are). You'll probably also need to add bits to handle situations when the location isn't recognized (or isn't in the UK, for example).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.