>
Download This Plugin | |
Download Elegant Themes | |
Name | Meta Box Locationpicker |
Version | 1.1 |
Author | de Internet Jongens B.V. |
Rating | 0 |
Last updated | 2015-01-16 03:53:00 |
Downloads |
18
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Meta Box Locationpicker plugin added 4 bytes of resources to the Home page and 2 bytes of resources to the sample Post page.
Meta Box Locationpicker plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Meta Box Locationpicker plugin ads no tables to your Wordpress blog database.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.
This plugin has been built in collaboration with de Internet Jongens