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

WP_NearbyFacilities

外掛說明

中心点と検索対象を指定するだけで、中心点と検索対象のそれぞれにマーカーを表示するGoogleマップを表示するプラグインです。
使用を開始する前に、Google Maps PlatformでAPIキーを取得しておく必要があります。

It is a plug-in that displays a Google Map that displays markers at each of the center point and search target simply by specifying the center point and search target.
Before you begin, you need to have an API key on Google Maps Platform.

Arbitrary section

安裝方式

  1. /wp-content/pluginsディレクトリにプラグインのファイルをディレクトリごとアップロードします。
  2. WordPressの「プラグイン」メニューからプラグインを有効化します。
  3. 「NearbyFacilities -> 設定」メニューからAPIキーを登録します。
  4. 投稿内にショートコードを書けばGoogle Mapが表示されます。
    例:[nearbyFacilities address=”中心点の住所” type=”検索対象の種類” zoom=”ズームレベル” radius=”検索半径”]

  5. Upload the plugin file to the /wp-content/plugins directory.

  6. Activate the plugin through the ‘Plugins’ menu in WordPress.
  7. Register an API key from the “NearbyFacilities -> Settings” menu.
  8. If you write a short code in the post, Google Map will be displayed.
    ex:[nearbyFacilities address=”center address of map” type=”type of search target” zoom=”zoom level” radius=”search radius”]

常見問題集

  • 何か必要なものはありますか?

    • Google Maps PlatformでAPIキーを取得しておく必要があります。
      以下のサイトを参考にキーを取得して、Geocoding API、Maps JavaScript API、Places APIの3つを有効にしておきます。
      [https://qiita.com/k2999/items/a9f41ea697a4f955ec1c]
  • What do I need to display the map?

    • Yes. To display a map using the Google Maps API, you need a Google Maps API key.

      Obtain the key by referring to the following pages, etc., and enable the three APIs of Geocoding API, Maps JavaScript API, Places API.
      [https://qiita.com/k2999/items/a9f41ea697a4f955ec1c]

  • ショートコードを作成するにはどうすればよいですか?

    • APIキーを登録した後 [nearbyFacilities address="中心点の住所" type="検索対象の種類" zoom="ズームレベル" radius="検索半径"] の書式で書くことができます。
    • 以下の方法でにWebUIで生成することもできます。
      1. 「NearbyFacilities -> 設定」メニューからAPIキーを登録します。
      2. 「NearbyFacilities -> ショートコードの生成」メニューで各種パラメータを設定し、ショートコードを生成します。
      3. 「決定」ボタンクリックで最下部のテキストボックスに生成されたショートコードが入力されます。
      4. テキストボックスをクリックすると、自動的にクリップボードにコピーされるので、投稿の際に貼り付けてください。
      • WebUIにあるパラメーターの他に、ボックスの幅と高を指定することもできます(「px」または「%」)。
  • How do I get the shortcode to write ?

    • After registering the API key, It can be written in the format of [nearbyFacilities address="address of center point" type="type of search target" zoom="zoom level" radius="search radius"] .
    • It can also be generated in WebUI in the following ways.
      1. Register an API key from the “NearbyFacilities -> Settings” menu.
      2. Set various parameters in the “NearbyFacilities-> Generate Shortcode” menu to generate a shortcode.
      3. Click the “Submit” button and the generated shortcode will be entered in the text box at the bottom.
      4. Clicking on the text box will automatically copy it to the clipboard, so paste it when posting.
      • In addition to the parameters found in the WebUI, you can also specify the width and height of the box (“px” or “%”).
  • 「address」に設定できるのは住所だけですか?

    • 住所がはっきりわからない場合は、Googleで検索できるのであれば建物名・施設名でも大丈夫です。
  • Can only “address” be set for address?

    • If you do not know the address, you can use the building name or facility name if you can search on Google.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

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

參與者

〈WP_NearbyFacilities〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈WP_NearbyFacilities〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.3

  • 重複していたサイドメニューの項目名を修正(Fixed duplicate side menu item names)
  • readme.txtの修正(Modify readme.txt)

1.0.2

  • 翻訳ファイル読み込みの関数をクラス内に収容(Contains translation file reading function in class)

1.0.1

  • コーディングスタイルの修正(Modify coding style)
  • 動作していないjavascriptの読み込みを抑制(Suppress loading of javascript that is not working)

1.0.0

  • 公式申請前のバージョン。限定された環境でしか動かなかった(Version before official application. Only worked in a limited environment)