Skip to content

Google Maps field type for Custom Metaboxes and Fields for WordPress

Notifications You must be signed in to change notification settings

lauravaq/cmb_field_map

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published