Title: Geo Targeted Posts
Author: karolisg
Published: <strong>2014 年 11 月 18 日</strong>
Last modified: 2017 年 1 月 12 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/geo-targeted-posts.svg)

# Geo Targeted Posts

 由 [karolisg](https://profiles.wordpress.org/karolisg/) 開發

[下載](https://downloads.wordpress.org/plugin/geo-targeted-posts.0.8.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/geo-targeted-posts/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/geo-targeted-posts/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/geo-targeted-posts/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/geo-targeted-posts/#developers)

 [技術支援](https://wordpress.org/support/plugin/geo-targeted-posts/)

## 外掛說明

This plugin adds an option to choose which countries are allowed to see the post.

Based on Geo Location user will or will not see the post in list pages. If restricted
post is accessed directly then a 404 error page is returned.

Features:

 * Ability to choose multiple countries from dropdown list manualy for each post
 * Ability to write/paste in the list of country codes (eg. de,gb,fi,lt)
 * Post, page, custom post types support
 * CSV import plugins support
 * Translation ready, WPML support
 * Simulate admin location
 * Controll whether to display all posts to logged in users, to admins only or filter
   posts for logged in users as per default
 * Clear the list of set countries for post with one click
 * Supports quick and bulk edit boxes in post list

The Plugin uses Maxmind’s GeoIP API.

Currently supported countries are:
 Andorra, United Arab Emirates, Afghanistan, 
Antigua and Barbuda, Anguilla, Albania, Armenia, Angola, Asia/Pacific Region, Antarctica,
Argentina, American Samoa, Austria, Australia, Aruba, Aland Islands, Azerbaijan,
Bosnia and Herzegovina, Barbados, Bangladesh, Belgium, Burkina Faso, Bulgaria, Bahrain,
Burundi, Benin, Saint Bartelemey, Bermuda, Brunei Darussalam, Bolivia, Bonaire, 
Saint Eustatius and Saba, Brazil, Bahamas, Bhutan, Bouvet Island, Botswana, Belarus,
Belize, Canada, Cocos (Keeling) Islands, Central African Republic, Congo, Switzerland,
Cote d’Ivoire, Cook Islands, Chile, Cameroon, China, Colombia, Costa Rica, Cuba,
Cape Verde, Curacao, Christmas Island, Cyprus, Czech Republic, Germany, Djibouti,
Denmark, Dominica, Dominican Republic, Algeria, Ecuador, Estonia, Egypt, Western
Sahara, Eritrea, Spain, Ethiopia, Europe, Finland, Fiji, Falkland Islands (Malvinas),
Micronesia, Federated States of, Faroe Islands, France, Gabon, United Kingdom, Grenada,
Georgia, French Guiana, Guernsey, Ghana, Gibraltar, Greenland, Gambia, Guinea, Guadeloupe,
Equatorial Guinea, Greece, South Georgia and the South Sandwich Islands, Guatemala,
Guam, Guinea-Bissau, Guyana, Hong Kong, Heard Island and McDonald Islands, Honduras,
Croatia, Haiti, Hungary, Indonesia, Ireland, Israel, Isle of Man, India, British
Indian Ocean Territory, Iraq, Iran, Islamic Republic of, Iceland, Italy, Jersey,
Jamaica, Jordan, Japan, Kenya, Kyrgyzstan, Cambodia, Kiribati, Comoros, Saint Kitts
and Nevis, Korea, Democratic People’s Republic of, Korea, Republic of, Kuwait, Cayman
Islands, Kazakhstan, Lao People’s Democratic Republic, Lebanon, Saint Lucia, Liechtenstein,
Sri Lanka, Liberia, Lesotho, Lithuania, Luxembourg, Latvia, Libyan Arab Jamahiriya,
Morocco, Monaco, Moldova, Montenegro, Saint Martin, Madagascar, Marshall Islands,
Macedonia, Mali, Myanmar, Mongolia, Macao, Northern Mariana Islands, Martinique,
Mauritania, Montserrat, Malta, Mauritius, Maldives, Malawi, Mexico, Malaysia, Mozambique,
Namibia, New Caledonia, Niger, Norfolk Island, Nigeria, Nicaragua, Netherlands, 
Norway, Nepal, Nauru, Niue, New Zealand, Oman, Panama, Peru, French Polynesia, Papua
New Guinea, Philippines, Pakistan, Poland, Saint Pierre and Miquelon, Pitcairn, 
Puerto Rico, Palestinian Territory, Portugal, Palau, Paraguay, Qatar, Reunion, Romania,
Serbia, Russian Federation, Rwanda, Saudi Arabia, Solomon Islands, Seychelles, Sudan,
Sweden, Singapore, Saint Helena, Slovenia, Svalbard and Jan Mayen, Slovakia, Sierra
Leone, San Marino, Senegal, Somalia, Suriname, South Sudan, Sao Tome and Principe,
El Salvador, Sint Maarten, Syrian Arab Republic, Swaziland, Turks and Caicos Islands,
Chad, French Southern Territories, Togo, Thailand, Tajikistan, Tokelau, Timor-Leste,
Turkmenistan, Tunisia, Tonga, Turkey, Trinidad and Tobago, Tuvalu, Taiwan, Tanzania,
Ukraine, Uganda, United States Minor Outlying Islands, United States, Uruguay, Uzbekistan,
Holy See (Vatican City State), Saint Vincent and the Grenadines, Venezuela, Virgin
Islands, British, Virgin Islands, U.S., Vietnam, Vanuatu, Wallis and Futuna, Samoa,
Yemen, Mayotte, South Africa, Zambia, Zimbabwe

## 安裝方式

 1. Upload `geo-targeted-posts` directory to the `/wp-content/plugins/`
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to Post and in Publish section you will see New item where you can specified
    in wich countries post can be visible

## 常見問題集

  Where can I find the option to choose countries?

An option to choose countries is rendered above Publish button of each post in admin
section.

  Which post types are excluded by default?

By default we decided to exclude the following post types: attachment, revision,
nav_menu_item, product_variation, shop_order, shop_order_refund, shop_coupon, shop_webhook

  How can I edit the excluded post types list?

You can edit the excluded post types list by applying a **gtp_exclude_post_types**
filter. For example for some reason you want to remove **shop_coupon** from excluded
list you should include the following in your theme’s functions.php file:

    ```
    <?php
    add_filter('gtp_exclude_post_types', 'alter_excluded_posts_types');
    function alter_excluded_posts_types( $post_type_list ) {
        $new_post_type_list = array_diff( $post_type_list, array( 'shop_coupon' ) );
        return $new_post_type_list;
    }
    ?>
    ```

## 使用者評論

![](https://secure.gravatar.com/avatar/0b7cefc9baa4eee41fa83ac849cf5f7ee0a6356b08f4d3dcb69b9304e404df9e?
s=60&d=retro&r=g)

### 󠀁[The Perfect Solution to filter post based on the Country visiting it](https://wordpress.org/support/topic/the-perfect-solution-to-filter-post-based-on-the-country-visiting-it/)󠁿

 [sathyasaagar](https://profiles.wordpress.org/sathyasaagar/) 2017 年 8 月 16 日

The Perfect Solution to filter post based on the Country visiting it

![](https://secure.gravatar.com/avatar/c56d6ab8639de494a8159108bccca6f0e2ea4545f73d80cf12eaae3700f2de1c?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-9990/)󠁿

 [jidetwo](https://profiles.wordpress.org/jidetwo/) 2016 年 9 月 3 日

the geo ip doesn’t work very well on firefox but it’s a great plugin nonetheless.

![](https://secure.gravatar.com/avatar/498a106e2f752bed80ca395f8c9ebf76f7be18d9bad0d57b98c90b9d4b0b45a1?
s=60&d=retro&r=g)

### 󠀁[Exclude countries?](https://wordpress.org/support/topic/exclude-countries-1/)󠁿

 [ronnykaram](https://profiles.wordpress.org/ronnykaram/) 2016 年 9 月 3 日

The plugin works as expected; it delivers posts to selected countries. I was just
wondering if it’s possible to exclude countries instead of adding all other countries.
For example, if I want everyone to see the post except the U.S. Is this possible?

 [ 閱讀全部 4 則使用者評論 ](https://wordpress.org/support/plugin/geo-targeted-posts/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Geo Targeted Posts〉的開發相關工作。

參與者

 *   [ karolisg ](https://profiles.wordpress.org/karolisg/)
 *   [ mindaugas ](https://profiles.wordpress.org/mindaugas/)

[將〈Geo Targeted Posts〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/geo-targeted-posts)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/geo-targeted-posts/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/geo-targeted-posts/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/geo-targeted-posts/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/geo-targeted-posts/)。

## 變更記錄

#### 0.8

 * [ADDED] Quick and bulk edit support in post list
 * [ADDED] Custom Countries column in post list
 * [ADDED] Option to choose post types where plugin is active
 * [ADDED] Simple plugin on/off button
 * [REMOVED] Annoying donate button from post edit screen

#### 0.7

 * New admin panel in Settings -> Geo Targeteed Posts
 * Ability to simulate admin location – no more proxies to see how your site looks
   in different countries!
 * Controll whether to display all posts to logged in users, to admins only or filter
   posts for logged in users as per default
 * Button to clear all set countries for post

#### 0.6.2

 * Bug fix

#### 0.6

 * Added support for CSV import plugins
 * Translation ready

#### 0.5

 * New plugin author;
 * Rewritten core of the plugin for performance;
 * OOP is now used;
 * Added ability to paste in the countries by it’s code.

#### 0.4

 * Updated activation plugin source

#### 0.3

 * Updated code for performance

#### 0.2

 * Fixed bug with pages

#### 0.1

 * Updated Country list

## 中繼資料

 *  版本 **0.8.3**
 *  最後更新 **9 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 3.5.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.7.33**
 *  語言
 * [English (US)](https://wordpress.org/plugins/geo-targeted-posts/)
 * 標籤:
 * [country](https://tw.wordpress.org/plugins/tags/country/)[geo post](https://tw.wordpress.org/plugins/tags/geo-post/)
   [geo tag](https://tw.wordpress.org/plugins/tags/geo-tag/)[location](https://tw.wordpress.org/plugins/tags/location/)
   [user location](https://tw.wordpress.org/plugins/tags/user-location/)
 *  [進階檢視](https://tw.wordpress.org/plugins/geo-targeted-posts/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  4 個 5 星使用者評論     ](https://wordpress.org/support/plugin/geo-targeted-posts/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/geo-targeted-posts/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/geo-targeted-posts/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/geo-targeted-posts/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/geo-targeted-posts/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/geo-targeted-posts/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/geo-targeted-posts/reviews/)

## 參與者

 *   [ karolisg ](https://profiles.wordpress.org/karolisg/)
 *   [ mindaugas ](https://profiles.wordpress.org/mindaugas/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/geo-targeted-posts/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MWSSDWX6DMP9C)