前言介紹
- 這款 WordPress 外掛「WP_Places」是 2015-12-15 上架。
- 目前有 20 個安裝啟用數。
- 上一次更新是 2018-10-11,距離現在已有 2397 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 有 9 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
location | google places | Business Information | Google Places API Web Services |
內容簡介
如果你常常寫關於當地地點的部落格文章,你可能希望為你的使用者提供營業時間、電話號碼和地址等資訊。但是,這樣的資訊往往很難維持最新。幸運的是,谷歌提供了一個名為 Google Places API Web Service 的應用程式介面。Google Places API Web Service 可以讓你新增有關數百萬個位置的最新資訊。
WP_Places 外掛需要一個 Google Places API Web Service 金鑰。然而,在撰寫本文時,API 金鑰是免費的,並且每 24 小時提供多達 1,000 個請求。如果你驗證你的身份(提供信用卡給 Google),他們將會將你每天可以發出的請求次數提高至 150,000。
安裝 WP_Places 後,你只需提供名稱和位置,就可以顯示包含商家名稱、地址、營業時間、電話號碼和網站的 DIV。
以下是可用的短碼:
[wp_places name] 顯示 Google Places 名稱
[wp_places formattedAddress] 以區域標準化方式顯示地址
[wp_places phoneNumber] 以區域標準化方式顯示電話號碼
[wp_places hours] 以列表形式顯示營業時間
[wp_places website] 顯示網站
[wp_places priceLevel] 以 Google Places API 所規定的價位等級返回價格等級
[wp_places rating] 以 Google Places API 所規定的平均評分返回平均評分
[wp_places lat] 緯度
[wp_places lng] 經度
[wp_places openNow] 如果正在營業,就返回 1
[wp_places openNowText] 如果正在營業,就返回 "Open Now"
[wp_places permanentlyClosed] 如果永久關閉,就返回 1
[wp_places photos] 如果 Google 提供照片,就返回照片
[wp_places reviews] 如果 Google 提供評論,就返回評論的 UL 列表
你可以使用篩選器來過濾 Google 回復的緩存時間:
add_filter( 'wp_places_transient', 'wp_places_update_transient', 10, 1 );
wp_places_update_transient( $time ) {
// 以秒為單位返回一個緩存時間
return 86400; // 一天
return 604800 // 一週
}
原文外掛簡介
If you find you regularly write blog posts about (local?) places you might want to provide info such as hours, phone number, address to your users. However, this can be difficult to keep current. Fortunately Google offers an API called Google Places API Web Service. Google Place API Web Service allows you to Add up-to-date information about millions of locations.
WP_Places Plugin requires a Google Places API Web Service Key. However, at the time of writing the API key is free and provides up to 1,000 requests per 24 hour period. If you verify your identity (by providing Google a Credit Card) they will increase your daily request per 24 hours to 150,000.
Once Installed, WP_Places takes name and location and displays a DIV containing Business Name, Address, Hours, Phone Number, Website.
The following shortcodes are available:
[wp_places name] displays the Google Places name
[wp_places formattedAddress] displays the address in the regionally standardized way
[wp_places phoneNumber] displays the phone number in the regionally standardized way
[wp_places hours] displays the hours of operation in a list
[wp_places website] displays the website
[wp_places priceLevel] returns the pricing level as prescribed in google places API
[wp_places rating] returns the average rating as prescribed in google places API
[wp_places lat] lattitude
[wp_places lng] longitude
[wp_places openNow] returns 1 if open
[wp_places openNowText] returns “Open Now” if open
[wp_places permanentlyClosed] returns 1 if permanently closed
[wp_places photos] returns photos if google supplies them
[wp_places reviews] returns a UL list of reviews if google supplies them
To filter how long to cache the google reply there is a filter:
add_filter( ‘wp_places_transient’, ‘wp_places_update_transient’, 10, 1 );
wp_places_update_transient( $time ) {
// return a value in seconds for how long to cache.
return 86400; // one day
return 604800 // one week
}
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP_Places」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.1.0 | 1.1.1 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 1.1.7 | 1.1.8 | 1.1.9 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.0.6 | 2.1.0 | 2.1.1 | 2.1.2 | trunk | 1.1.10 | 1.1.11 | 1.1.12 | 1.1.13 | 1.1.14 | 1.1.15 | 1.1.16 | 1.1.17 | 1.1.18 | 1.1.19 |
延伸相關外掛(你可能也想知道)
My Calendar – Accessible Event Manager 》My Calendar 是一款 WordPress 活動管理外掛,提供豐富的自定義事件顯示方式。本外掛支援在 WordPress Multisite 中建立個別的事件日曆,按類別、地點或作者...。
Easy Google Maps 》WordPress Easy Google Maps, , WordPress 簡易 Google 地圖, 如何使用簡易 Google 地圖, 簡易 Google 地圖演示, , 使用 WordPress 繪製易於 Google 地圖,只...。
Weather Atlas Widget 》氣象小工具演示(多個實時網站), , marbella-tennis-lessons.com, arsbc.com, morethangolfmarrakech.co.uk, airciu.com, aviemoreadvisor.com, ballinghamb...。
If-So Dynamic Content Personalization 》個性化任何內容!根據訪客的個人資料或與網站的互動添加或替換內容。, 無需編程!, 創建動態內容的四種方式, , 條件觸發器-適用於每個頁面生成器-查看, 條件G...。
Oi Yandex.Maps for WordPress 》注意!, 當您升級外掛到版本3.1.6時,它將被停用並顯示“找不到檔案”的錯誤 - 別擔心,只需重新啟用該外掛程式,...。
Custom Content by Country (by Shield Security) 》來自 Shield 安全插件團隊的Custom Content by Country擴充套件,, 提供您基於用戶所在區域(如有提供)的位置,選擇顯示/隱藏內容的選項。, 透過簡單的Short...。
If-So Conditional Content for Elementor 》### 總結:輕鬆個性化,就在 Elementor 內部, - 輕鬆為訪客打造個性化體驗,根據位置、行為、搜索關鍵詞等動態調整 Elementor 頁面。, - 針對每位訪客量身定...。
Nearby Now Reviews and Audio Testimonials 》Nearby Now for WordPress 是將即時的Nearby Now評論和報到,以及引人注目的互動服務區域熱點地圖添加到您的網站上的絕佳方法。使用此外掛可有五種顯示方式:,...。
Meks Easy Maps 》Meks Easy Maps 最初是我們的 Trawell WordPress 主題 的一個功能,但現在它可用於任何 WordPress 網站。, 透過 Meks Easy Maps WordPress 外掛,您可以透過 ...。
Embed Google Map 》Embed Google Map 是一款在 WordPress 文章、頁面、文字小工具以及模板中嵌入一個或多個 Google 地圖的外掛。添加地圖非常簡單,只需將您想在地圖上顯示的位...。
BP xProfile Location 》此外掛可與「BuddyPress」和「BuddyBoss 平台」搭配使用。它會建立「xProfile 位置」欄位類型,使用 Google Places API 來填寫和驗證會員檔案上的地址欄位。,...。
Simple Locator 》為什麼要使用 Simple Locator?, Simple Locator 適合開發人員尋找實現任何文章類型的位置搜尋的方法。它與其他插件不同之處在於可允許使用現有的自訂欄位作...。
Geolocation 》Geolocation 外掛允許 WordPress 使用者在「編輯文章」頁面或任何支援地理位置功能的 WordPress 行動應用程式 (例如:WordPress for iPhone/iPad、WordPress ...。
Address Geocoder 》Address Geocoder 外掛可讓您將經緯度附加到您的文章、頁面和自訂文章類型中。在編輯畫面上,只需在 metabox 中輸入地址並點擊"Geocode"。, 此外掛程式使用 G...。
Themify Store Locator 》Themify Store Locator 外掛讓你可以在地圖、列表或網格視圖中顯示無限數量的地點。每個店家地點都可以插入自己的自訂描述、地址、聯絡電話和營業時間。當使...。