[WordPress] 外掛分享: GeoMeta For ACF

首頁外掛目錄 › GeoMeta For ACF
WordPress 外掛 GeoMeta For ACF 的封面圖片
100+
安裝啟用
尚無評分
3302 天前
最後更新
問題解決
WordPress 4.4.0+ v0.0.4 上架:2016-11-28

內容簡介

GeoMeta for ACF 是在 ACF 支援的文章、頁面、使用者或其他內容類型中
存儲位置資訊的簡便方法。預設輸入是一張地圖,上面具備標記、線條和
多邊形的繪圖工具,讓使用者繪製。此外,您也可以接受緯度和經度值,或
原始的 GeoJSON 文字。

GeoMeta for ACF 支援 ACF 版本 4 和 5。

為什麼要使用 GeoMeta for ACF,而不是其他的 ACF 地圖輸入方式?

GeoMeta for ACF 在幕後使用的是 WP-GeoMeta,這意味著您實際上是在存儲空間元
資料,而非僅僅是文字。使用 WP-GeoMeta 函式庫,您可以存取 MySQL 支援的一
切空間函式,以搜尋和篩選 WordPress 的文章和使用者。

相容性

此 ACF 欄位類型相容於:

ACF 5 / ACF Pro
ACF 4

注意

如果您使用的 ACF 版本為 ACF Pro 5.5.0 之前,則詞匯的元值(分類/標籤)
存儲在 wp_options 中。在 ACF Pro 5.5.0 之後,元值存儲在 wp_termmeta 中。即使
在 ACF 較早的版本中,GeoMeta for ACF 仍會為詞匯顯示地圖或其他輸入欄位。
但由於該值未存儲在 wp_termmeta 表中,因此它們不會被選中包含在空間表
中,且對它們進行空間搜尋時將失敗。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「GeoMeta For ACF」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

GeoMeta for ACF is an easy way to store location information about posts, pages,
users or other content types that ACF supports. The default input is a map
with drawing tools to let the user draw markers, lines and polygons.
Alternatively you can accept latitude and longitude values, or raw GeoJSON
text.
GeoMeta for ACF supports for both ACF version 4 and 5.
Why use GeoMeta for ACF instead of one of the other map inputs for ACF?
GeoMeta for ACF uses WP-GeoMeta under the hood, which means that you’re
actually storing spatial meta data, not just text. With the WP-GeoMeta library
you have access to all of the spatial functions MySQL supports to search and
filter your WordPress posts and users.
Compatibility
This ACF field type is compatible with:

ACF 5 / ACF Pro
ACF 4

Note
Metavalues for terms (Categories/Tags) were stored in wp_options up until ACF
Pro 5.5.0. GeoMeta for ACF will still display a map or other input field for
terms in previous versions of ACF, but since the values aren’t stored in the
wp_termmeta table, they won’t be picked up for inclusion in the spatial table
and spatial searches on them will fail.

延伸相關外掛

文章
Filter
Mastodon