이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Geolocator

설명

Get website visitor’s location based on IP address and show/hide specific content depending on country.

Meta box

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.

Shortcodes

Country

The most basic shortcode of the plugin is [geolocator] which displays country of the visitor.

Show

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.

Hide

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.

Widget

You can display country of the visitor by using Geolocator’s widget. It allows you to choose a custom text.

Credits

This plugin includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.

스크린샷

  • Shortcodes of the plugin in post’s edit screen.
  • Shortcodes displayed in the listing of theme.
  • Custom meta box that allows to hide post for country.
  • Simple widget that displays country of the visitor.
  • Plugin settings, it allows to set fallback IP.

후기

2019년 11월 8일 답글 1개
This plugin relies on data from a third party. That third party says they discontinued the data on 2 January 2019. A pity: it looked quite good.
2018년 3월 2일
Nice plugin, simple to use and get’s the job done.
모든 4 평가 읽기

기여자 & 개발자

“Geolocator”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Geolocator”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.1

  • 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.

1.0.1

  • Depreciated Telize API provider since it does not work anymore;
  • Improved the code style to match more the one defined in Codex.