1. Go to this page and download the library: Download logoscon/cmb2-plus library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
logoscon / cmb2-plus example snippets
$cmb->add_field( array(
'name' => 'Featured Category',
'desc' => 'Set a featured category for this post.',
'id' => '_cmb2_featured_category',
'type' => 'select',
'options_cb' => 'cmb2_get_term_options',
'get_terms_args' => array(
'taxonomy' => 'category',
'hide_empty' => false,
),
) );