[wordpress插件] Advanced Custom Fields: Leaflet Map Field高级自定义字段:单张地图字段

wordpress 插件 文章 2020-01-26 22:20 589 0 全屏看文

AI助手支持GPT4.0

评分

70

70

描述

This plugin adds a Leaflet map field to the Advanced Custom Fields plugin.

此插件将“传单”地图字段添加到“高级自定义字段”插件。

Create the backend field

创建后端字段

You can add a leaflet map field using ACF like the Google Map field.

您可以使用ACF来添加传单地图字段,例如Google Map字段。

Diplay the map in front-end

在前端显示地图

Uses the classic ACF get_field('field_name') function to get field data (lat, lng, address & zoom).

使用经典的ACF get_field('field_name')函数获取字段数据(纬度,经度,地址和缩放)。

Warning, the get_field() function does not display the map itself, for this, use the

警告, get_field()函数不会显示地图本身,为此,请使用

="nofollow">leaflet js map documentation directly

=“ nofollow”>传单js地图文档直接

Compatibility

兼容性

This ACF field type is compatible with:

此ACF字段类型兼容:

* ACF 5 only (Pro & Free)

*仅适用于ACF 5(专业版和免费版)

NB: If you're using the ACF 4 Free version, you can upgrade to version 5 step by step on this page

“ rel =” nofollow“>在此页面上

安装步骤

From your WordPress dashboard

从您的WordPress仪表板中

1. Visit Plugins > Add New

1.访问插件>添加新

2. Search for “Advanced Custom Fields: Leaflet Field”

2.搜索“高级自定义字段:传单字段”

3. Activate “Advanced Custom Fields: Leaflet Field” from your Plugins page

3.从“插件”页面激活“高级自定义字段:传单字段”

4. Create ACF new leaflet map field from “Custom Fields” menu item

4.从“自定义字段”菜单项创建ACF新的传单地图字段

下载地址

https://downloads.wordpress.org/plugin/acf-leaflet-map-field.zip

https://downloads.wordpress.org/plugin/acf-leaflet-map-field.zip

-EOF-

AI助手支持GPT4.0