title: Geolocation in wordpress
body: <p>I have a client with a site that shows a different content based on the user country (england, australia or other). I tried several plugins that allow to "convert" the ip to the country (right now I'm using Visitor Country, I also tried ip-to-country and World Flags and I think one more I can't recall).</p>
  
  <p>When I check through vpn everything seem to work fine, but the client - who travel a lot - almost always sees the wrong content (for instance when he was in the uk he saw the $ instead of the pound symbol). He tried from several computers.</p>
  
  <p>Regarding the code it's pretty simple. Right now when the content need to be different I usually use:</p>
  
  <pre><code>if($VisitorCountry-&gt;GetName()=='United Kingdom') {do stuff}
  else if($VisitorCountry-&gt;GetName()=='Australia') {do other stuff}
  else {do some other stuff}
  </code></pre>
  
  <p>Any thoughts ??</p>