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.

Developers and designers could use the plugin to load different stylesheets based on the users country. Services like hulu.com uses techniques such as this to constrain viewership to a particular country.

Version 1.5.1 Released 2011-03-09

Plugin download and installation instructions can be found here.


14 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

4

Paul

August 25th, 2011 at 2:51 pm

Hi
I must being a bit dim. But I’ve installed the plugin but cannot find instructions on how to use it. I can see shortcode instruction for ip2nation at but none for this plugin. where do I find instructions (can’t find them in readme.txt)

sameer

August 25th, 2011 at 8:16 pm

Check the usage section at the link:

http://www.codediesel.com/plugins/country-filter/

6

Freeda

September 5th, 2011 at 1:43 am

Hi, sameer this is great plugin.

Can I hire you to make it work with Maxmind GeoLite Country instead of ip2country database ? Maxmind Geo database is free and more accurate I think.

You can mail me if you interested, we can talk about it.

sameer

September 5th, 2011 at 11:17 pm

Freeda! You are welcome to discuss the use of Maxmind database.

8

Frida

September 8th, 2011 at 7:47 pm

Just buy it, will give a try the Maxmind version of this plugin.
Great work Sameer, worth to buy.

Best Regards,
Frida

9

Olaf

March 30th, 2012 at 3:54 am

Hi,
does your plugin work together with caching? Since your shortcode is executed with PHP you can’t use any cache right?

sameer

March 30th, 2012 at 4:28 am

11

Jay

March 23rd, 2013 at 5:35 pm

I’m interested in buying this plugin. I’m not really good in programming and would like to know if it’s possible to program it in a way that banner a is displayed for visitors from the US, banner b is displayed for visitors from the UK and either banner a, banner b or a third banner c is displayed for the rest of the world?

Thanks!

sameer

March 23rd, 2013 at 10:50 pm

Yes, you can do that. Check the new example added on the plugin page.

http://www.codediesel.com/plugins/country-filter/

13

Neil

July 14th, 2013 at 8:33 am

I wish to know if this plugin works with the latest WP version and whether you will continue to support the plugin with newer versions of WP…. interested to get this one but must know this first.

sameer

July 14th, 2013 at 9:00 pm

The plugin has been tested upto version 3.5.2

Your thoughts