This plugin allows you to white-list the countries to which a specific post should be served. You can add multiple countries to white list.Each post will have individual white-lists.
In addition to that, the plugin impliments a shortcode with which you can show a small part of the post localized. The content within the shortcode will be visible only to people from the specified country.
It uses
MaxMind's GeoIP data file, for the purpose of geolocating;
This product includes GeoLite data created by MaxMind, available from [http://www.maxmind.com](http://www.maxmind.com).
GitHub Repository is
here.
Install and activate the plugin
Metabox
- Enter 3 letter Country code
- Press ';' to add the country to Whitelist. Don't press Enter/Return
- When you press ';' it will be saved only if its a valid code
- Type full country name to see hints on country code
- Eg: type USA then press ;
- You may type down "united sta"... to see the country code for USA
Edit/Deletel
- Countries in white list is visible above the text field
- Double click to open it for editing. press ';' after editing
- If its not saved back using ';' , it will be deleted
Short Code
- use the short code [local code="country_code"]
- multiple shortcode sections can be added in a post
eg: [local code='IND'] .. [/local]