Closed asifsaho closed 10 years ago
function wpb_initialize_cmb_meta_boxes() { if ( ! class_exists( 'cmb_Meta_Box' ) ) require_once(plugin_dir_path( FILE ) . 'init.php'); require_once(plugin_dir_path( FILE ) . 'cmb-field-select2-master/cmb-field-select2.php'); }
add_action( 'init', 'wpb_initialize_cmb_meta_boxes', 9999 );
basically load the select2 file after you load the cmb init file
Cheers @jajouka79. The alternative is to place cmb-field-select2-master
into your wp-content/plugins
directory and activate as if it were a standard WordPress plugin.
I'll add installation instructions to the readme in a future update.
Thanks a lot guys :)
Can you provide 2 lines installation guide for this plugin?