Description: Adds the ability to target post content by a visitor's country location.
[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.
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]
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:
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):
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: 8 years ago
Active Installs: 10+
Got something to say? Need help?