Get website visitor’s location based on IP address and show/hide specific content depending on country.
You can hide post for particular country by filling “Hide for” field in custom meta box in post’s edit screen. That way the post will not be included to the loop and other parts of the website.
The most basic shortcode of the plugin is [geolocator] which displays country of the visitor.
You can show some specific content for particular country by using [geolocator_show] shortcode. See example below.
[geolocator_show for="US"]This information is being shown to visitors from United States only.[/geolocator_show]
The shortcode accepts “for” attribute. It should be a 2-letter ISO code of the country you want to show the content for.
You can hide some specific content for particular country by using [geolocator_hide] shortcode. See example below.
[geolocator_hide for="US"]This information is NOT being shown to visitors from United States.[/geolocator_hide]
The shortcode accepts “for” attribute. It should be a 2-letter ISO code of the country you want to hide the content for.
You can display country of the visitor by using Geolocator’s widget. It allows you to choose a custom text.
This plugin includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.
기여자 & 개발자
“Geolocator”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.기여자
개발에 관심이 있으십니까?
- Refactored framework of the plugin, it’s now more future-proof;
- Changed data source to GeoLite-Country database by MaxMind;
- Created shortcodes, widget and custom post meta box.
- Depreciated Telize API provider since it does not work anymore;
- Improved the code style to match more the one defined in Codex.