Title: WP GeoPosts
Author: fyaconiello
Published: <strong>2012年8月16日</strong>
Last modified: 2012年8月20日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/wp-geoposts.svg)

# WP GeoPosts

 作者: [fyaconiello](https://profiles.wordpress.org/fyaconiello/)

[ダウンロード](https://downloads.wordpress.org/plugin/wp-geoposts.zip)

 * [詳細](https://ja.wordpress.org/plugins/wp-geoposts/#description)
 * [レビュー](https://ja.wordpress.org/plugins/wp-geoposts/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/wp-geoposts/#installation)
 * [開発](https://ja.wordpress.org/plugins/wp-geoposts/#developers)

 [サポート](https://wordpress.org/support/plugin/wp-geoposts/)

## 説明

#### Features

 1. Adds `location`, `latitude`, and `longitude` meta + metaboxes to any content type.
 2. Provides an easy to use interface for selecting which content types to apply the
    above meta values. _Note: this allows selection of built in types: page and post
    as well as any registered custom post types._
 3. Provides `WP_GeoQuery` an extended `WP_Query` class for doing distance based and
    geo-aware queries.

Coming Soon!

 * Add support for `within radius` option to WP_GeoQuery
 * HTML5 geolocation of visitors, with a fallback to `Change Location` (stored as
   COOKIE)
 * Custom Markers by post type.
 * Shortags for:
    - `Get Directions` link (utilizing Google Maps)
    - Static Map – show one or more posts on a static map
    - Dynamic Map – show one or more posts on a dynamic map
    - Option to show radius as overlay (for `within radius` calls)

## インストール

#### Installation

 1. Upload the entire `wp-geo-posts` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the `Plugins` menu in WordPress.

#### Setup

 1. Click the `Settings` link on the plugin management page **OR** click the `WP GeoPosts`
    link from the Settings flyout menu.
 2. Generate a Google Maps API Key and enter it into the provided text input. _Note:
    this is optional and used for Google Maps API calls._
 3. Select all of the content types that you wish to attach georelated content from
    the leftmost bank of choices and move them to the rightmost column.
 4. Submit the Form by clicking `Save Changes`.

## FAQ

  What are the post meta keys that your metabox adds?

For every post type selected on the plugin settings page. That type’s add/edit screens
will have an additional metabox automatically added. Metadata that is added to each
record:

 * **Location** via `wp_gp_location`
 * **Latitude** via `wp_gp_latitude`
 * **Longitude** via `wp_gp_longitude`

  How do I use WP_GeoQuery? (What is it for?)

Make a geo-aware query against the posts table. `WP_GeoQuery` accepts all arguments
that `WP_Query` takes. `latitude` and `longitude` are optional parameters. If passed,`
distance` is calculated and returned with each result. In addition to the regular
fields, each result returns `latitude`, `longitude`, and `location`.

    ```
    <?php
    $query = new WP_GeoQuery(array(
      'latitude' => '37.5160', // User's Latitude (optional)
      'longitude' => '-77.5005', // User's Longitude (optional)
      'posts_per_page' => 25, // Any regular options available via WP_Query
    ));
    foreach($query->posts as $post)
    {
        echo " {$post->post_title}<br />\n";

        // returned only if latitude and longitude are passed into WP_GeoQuery
        echo " {$post->distance}<br />\n";

        // Always returned by WP_GeoQuery
        echo " {$post->location}<br />\n";
        echo " {$post->latitude}<br />\n";
        echo " {$post->longitude}<br />\n";
        echo "<br />\n";
    }
    ?>
    ```

## 評価

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

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-3174/)󠁿

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

Very easy to use, works perfectly with WP 4.5.3. Yet something is missing: in the
admin panel, it would be great to have autocomplete functionality on the input field.

 [ 1件のレビューをすべて表示 ](https://wordpress.org/support/plugin/wp-geoposts/reviews/)

## 貢献者と開発者

WP GeoPosts はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献し
ています。

貢献者

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

[“WP GeoPosts” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/wp-geoposts)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/wp-geoposts/)するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/wp-geoposts/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/wp-geoposts/)
を [RSS](https://plugins.trac.wordpress.org/log/wp-geoposts/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.0

 * Initial Release

## メタ

 *  バージョン **1.0**
 *  最終更新日 **14年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 3.0またはそれ以降 **
 *  検証済み最新バージョン: **3.4.2**
 *  言語
 * [English (US)](https://wordpress.org/plugins/wp-geoposts/)
 * タグ
 * [distance](https://ja.wordpress.org/plugins/tags/distance/)[geo](https://ja.wordpress.org/plugins/tags/geo/)
   [location](https://ja.wordpress.org/plugins/tags/location/)[metabox](https://ja.wordpress.org/plugins/tags/metabox/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/wp-geoposts/advanced/)

## 評価

 5つ星中5つ星

 *  [  1 5-星レビュー     ](https://wordpress.org/support/plugin/wp-geoposts/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/wp-geoposts/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/wp-geoposts/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/wp-geoposts/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/wp-geoposts/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-geoposts/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/wp-geoposts/reviews/)

## 貢献者

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

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/wp-geoposts/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](http://fyaconiello.github.com/wp-geo-posts/)