Title: How does &#039;map&#039; work in admin side?
Last modified: August 22, 2016

---

# How does 'map' work in admin side?

 *  Resolved [ronliu2k](https://wordpress.org/support/users/ronliu2k/)
 * (@ronliu2k)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/how-does-map-work-in-admin-side/)
 * Hi,
 * I try to place a location picker via google map into a post type, but doesn’t
   work out, it just shows name and desc but no any buttons. My code is:
 *     ```
       $meta_boxes[] = array(
       		'id'       => 'product_information',
       		'title'    => 'Product Information',
       		'pages'    => array( 'ptd_product'),
       		'context'  => 'normal',
       		'priority' => 'high',
   
       		'fields' => array(
       			array(
       				'name'  => 'Number of days',
       				'desc'  => 'How many days this travel product includes?',
       				'id'    =>  'numberOfDays',
       				'type'  => 'number',
       				'std'   => '2',
       			),
       			array(
       				'name'             => 'Location',
       				'desc'             => 'Where it is exactly located, pick it up in map',
       				'id'               => "location",
       				'type'             => 'map',
       			),
       		)
       	);
       ```
   
 * [https://wordpress.org/plugins/meta-box/](https://wordpress.org/plugins/meta-box/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/how-does-map-work-in-admin-side/#post-5874771)
 * Hi,
 * The map uses another text field to fetch the address, so the map field can’t 
   go alone. This [demo file](https://github.com/rilwis/meta-box/blob/master/demo/map.php)
   shows how to implement the map field, please take a look.
 * Best regards

Viewing 1 replies (of 1 total)

The topic ‘How does 'map' work in admin side?’ is closed to new replies.

 * ![](https://ps.w.org/meta-box/assets/icon-128x128.png?rev=1100915)
 * [Meta Box](https://wordpress.org/plugins/meta-box/)
 * [Support Threads](https://wordpress.org/support/plugin/meta-box/)
 * [Active Topics](https://wordpress.org/support/plugin/meta-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meta-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meta-box/reviews/)

## Tags

 * [map](https://wordpress.org/support/topic-tag/map/)

 * 1 reply
 * 2 participants
 * Last reply from: [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/how-does-map-work-in-admin-side/#post-5874771)
 * Status: resolved