Wordpress Plugins

Country Filter

Country Filter plugin allows you to control the visibility of Wordpress elements depending on the users country of origin. You can hide or show certain elements of a page or some sections of a post from users browsing from a particular country.

For example you could have a ‘donate’ button on a sidebar that displays only if the user is browsing from France. Or you could hide a particular paragraph in a post for users from a particular country. This can be used by marketing people to deliver targeted content to audiences.

Version 1.5 Released 2009-10-12

Plugin download and installation instructions can be found here.

3 Responses

1

James

December 23rd, 2009 at 3:15 am

Hi Sameer,

I am very interested in this plug-in as I hope I could use it to display different advertising content to different site visitors based on geographic origin. Ultimately I could even use it to display different product pricing to visitors from different countries.

I’ll be playing with it soon and will come back and comment here and at WordPress.org.

Thanks!

2

christian

January 14th, 2010 at 5:02 am

Hi there, great plugin. I really hope a future update would include the ability to sort on city level not just country level. That would be asome.

Cheers

3

Andrew

January 24th, 2010 at 12:37 am

Great plugin - just what I was looking for. THere is a bug in hte example code though which was really annoying, till I found out!
Where you have “uk”, it should be “gb” - very minor but it caused me a big headache!!

Finally, do you know of an easy way to test the results? ie how to trick the website to think you are from another country so it will display the relevant changes. I know I could use proxies, but is there an easy way to do this as I always have trouble?

Thanks
Andrew

Comment Form

Use the html <code> tag to insert small source code snippets

For longer code examples use http://pastie.org/.

Get latest updates by E-mail

About this blog

This site is a digital habitat of Sameer, a freelance web developer working from Pune.More

Recent Comments

  • sameer: Check to see if the 'IDE > options > format' is set to HTML. [...]
  • sameer: Google strips any newline characters form the text. Although it does accept it with the online trans [...]
  • Arjan: Fiddler is a debugging tool for IE (not Microsoft's Fiddler) [...]
  • Susan Martin: while creating a test for site, command icons on IDE greyed out and do not respond when selected. I [...]
  • Saar: Thanks for this example. helped me a lot. I have 1 problem, I am translating chunks of code, but I [...]
  • sameer: You can add extra GET variables in the options array as below: $pager_options = array( 'mode [...]
  • Martin: How can you carry over your own variables into the URL? I am using a form to POST a couple of var [...]
  • nancy: thanks very much ! first tools [...]

  • Users Online

    • 11 Users Online
    • 6 Guests, 5 Bots