Plugin Directory

Content by Country

Description: Adds the ability to target post content by a visitor's country location.

Download Version 1.00

What is the tag format used to target content by country?

[cbc:+usa]My example content here.[/cbc]

Each country code used in the tags is separated by a : and then followed by a + (to include a country), or - (to exclude a country).

The example above would therefore show the text only to a visitor with an IP address from the USA.

Can I include or exclude multiple countries using 1 set of tags?

Yes, see the example below, which excludes both the USA and UK, but shows it to everyone else:

[cbc:-usa:-gb]My example content here.[/cbc]

Where can I find a full list of country codes that can be used?

You can view a full list of countries supported, and their codes, from your WordPress dashboard at Manage -> CBC Content, or by using the link below:

http://www.simonemery.co.uk/wp-plugins/content-by-country/

Will the database used ever go out of date?

The plugin uses the GeoLite Country database from maxmind.com, which is updated at the beginning of each month. You can download an updated database from the link below (you will need the binary version):

http://www.maxmind.com/app/geolitecountry

You would then need to overwrite the GeoIP.dat file in the database folder of the plugin.

Requires: 2.0 or higher
Compatible up to: 2.51
Last Updated: 2008-6-28 Downloads: 859

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(5 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,1,1
0,1,0
0,1,0
0,1,0
0,2,0