跳到内容

Meta Box Locationpicker

v1.1

marcopetersdij · 2015年1月16日 上架

Meta Box field to use when you need the user to pick a point on an image, like a map.

正在使用
10 以下
评分
暂无
累计下载
4,460
最近更新
2015年1月16日
需要 WordPress 4.0+已测试到 4.1.42

贡献者

This Meta Box field will let you create a Meta Box field in the admin to let the user pick a specific point in an image. Useful when you need a specific point on a map.

To use this plugin, you need to have the Meta Box plugin installed.

Usage:

When creating a new field, 3 Meta Box fields need to be added to the Meta Box. The following is an example of the usage:

array(     'name' => 'Place on map',     'id' => 'map_placement',     'type' => 'locationpicker',     'image' => get_template_directory_uri() . '/assets/img/admin/worldmap_admin.png' ), array(     'name' => '',     'id' => 'map_placement_top',     'type' => 'hidden' ), array(     'name' => '',     'id' => 'map_placement_left',     'type' => 'hidden' ) 

Values saved in the ‘map_placement_top’ and ‘map_placement_left’ fields, are percentages from the top and left side of the image. To show a point on an image on your site, you can use these percentages to place the point. The ID’s can be changed, but take note that the second and third ID needs to be the first ID with “_top” and “_left” appended.

Collaboration

This plugin has been built in collaboration with de Internet Jongens

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums