mustardBees / cmb_field_map

Google Maps field type for Custom Metaboxes and Fields for WordPress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation on Usage

respectyoda opened this issue · comments

I use CMB often as it is one fantastic web development tool for WordPress. I just learned that there are third party resources. I know how to include the array for the map in example-functions.php (which will be of course renamed), but where should I put the files such as cmb-field-map.php, the css and js folders? On the same level as the CMB folder?

Download the project and place the folder into your wp-content/plugins directory. Activate as if it were any other WordPress plugin.

I'll add installation instructions to the README in a future update.

Why does this have to act as a plugin? I don't use CMB itself as a plugin as I just add it to my custom WordPress theme directory and add code wherever is needed (i.e. functions.php).

You can place the cmb_field_map folder in with CMB in your theme.

At the bottom of example-functions.php, after you call:

require_once 'init.php';

Add another line to include the cmb-field-map.php file. Like so:

require_once 'cmb_field_map/cmb-field-map.php';

All right. Thanks!