
內容簡介
這個外掛是為了展示你的客戶而設計的。
你可以輸出帶有標記與表格的 Google 地圖,作為所有客戶的列表。
你可以標籤客戶並顯示搜尋和篩選欄。
此外掛不需要在前端使用 jQuery!
Google 地圖會自動定位所有添加的標記。標記上有客戶的名字、網站和地址的小訊息框。
地圖樣式和標記圖片可以進行自定義。
關於技術問題的一些注意事項:
提供了一個新的客戶自訂文章類型 clients
地圖功能可以透過 REST API 實現
沒有設置取回的 clients 文章限制。要注意取回過多的風險!(計劃了正確的限制功能)
短代碼
[mapple_map] 會創建帶有標記的 Google 地圖
[mapple_clients] 會創建一個帶有所有客戶的表格
有一些可能的屬性可以提供给 mapple_clients 短代碼。
這裡是一個帶有所有可能選項的完整範例:
[mapple_clients title-name="名字" title-address="地址" title-desc="描述" title-tags="行業" title-search="搜索" title-search-placeholder="輸入文字..." title-filter-label="按行業篩選" with-tags="true" with-search="true"]
所有 title- 屬性都是可用於自定義詞語。
[mapple_clients title-name="名字" title-address="地址" title-desc="描述" title-tags="行業" title-search="搜索" title-search-placeholder="輸入文字..." title-filter-label="按行業篩選"]
所有 with- 屬性都會啟用標籤列,當搜尋也啟用時,會啟用篩選。
[mapple_clients with-tags="true" with-search="true"]
信用
外掛橫幅圖片取自 rawpixel
外掛標籤
開發者團隊
原文外掛簡介
This plugin is for showing your clients.
You can output a google map with markers and a table as a list of all clients.
You can tag clients and show a search and filter bar.
This Plugin does not need jQuery on the FrontEnd!
The google map is centered shown to all markers added. Markers got little Infowindows with client’s name, website and address.
Map style and marker image customisation is possible.
A few notes about technical things:
provides a new custom post type clients
map functionality works over the REST_API
the limit of fetched clients posts is unset. Beware of the risk fetching too much!!! (proper limitation feature is planned)
Shortcodes
[mapple_map] will create the google map with marker
[mapple_clients] will create a table with all clients
There are a few possible attributes you can provide to your mapple_clients shortcode.
Here a full example with all possible options:
[mapple_clients title-name="Name" title-address="Adresse" title-desc="Beschreibung" title-tags="Branche" title-search="Suche" title-search-placeholder="lostippen..." title-filter-label="Nach Branche filtern" with-tags="true" with-search="true"]
all title- attributes are for customising wordings.
[mapple_clients title-name="Name" title-address="Adresse" title-desc="Beschreibung" title-tags="Branche" title-search="Suche" title-search-placeholder="lostippen..." title-filter-label="Nach Branche filtern"]
all with- attributes activate the tags coloumn, and filter when search is also active.
[mapple_clients with-tags="true" with-search="true"]
Credit
Plugin banner image taken from rawpixel
