webface / cmb_field_map

Google Maps field type for Custom Metaboxes and Fields for WordPress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMB Field Type: Google Maps

Description

Google Maps field type for Custom Metaboxes and Fields for WordPress.

The pw_map field stores the latitude/longitude values which you can then use to display a map in your theme.

Usage

pw_map - Save a location on a map. Example:

array(
	'name' => 'Location',
	'desc' => 'Drag the marker to set the exact location',
	'id' => $prefix . 'location',
	'type' => 'pw_map',
	'sanitization_cb' => 'pw_map_sanitise',
),

Screenshot

Image

About

Google Maps field type for Custom Metaboxes and Fields for WordPress