Yes. You can add additional fields to the editor by adding some code to your theme’s functions.php file. The code you need is:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
function mlp_location_metaboxes_addnew( $meta_box_fields ) { //Add a text-box telephone field $meta_box_fields[] = array( 'name' => 'Telephone', 'id' => 'maplist_telephone', 'type' => 'text' ); //Add an opening hours editor field $meta_box_fields[] = array( 'name' => 'Opening hours', 'id' => 'maplist_openinghours', 'type' => 'wysiwyg', 'options' => array( 'wpautop' => true, // use wpautop? 'media_buttons' => false, // show insert/upload button(s) 'teeny' => true, // output the minimal editor config used in Press This 'tinymce' => true )); return $meta_box_fields; } add_filter( 'mlp_location_metaboxes', 'mlp_location_metaboxes_addnew' ); |
For a full list of the field types you can use take a look at this page. Note: Map List Pro may not support all of the field types listed.
If you want to make the fields you’ve added appear in your map locations take a look at the Adding custom fields to the description area page