title: Any way to add metaboxes in custom settings page of custom post type in wordpress?
body: <p>Hi I would like to add metaboxes under custom settings page which is under a custom post type. I can create metaboxes for custom post types also I can create a theme options. But can't find any way to add the metaboxes on a custom settings page. Like my post type hierarchy is like below:
  Products
   - All item
   - Add Item
   - Product Category
   - Product Settings</p>
  
  <p>I want to add the metaboxes &amp; create a options page on that settings page. Can you please guide me through this one.</p>
  
  <p>I've been trying to follow this gist but can't find a way.
  <a href="https://github.com/WebDevStudios/CMB2-Snippet-Library/blob/master/options-and-settings-pages/theme-options-cmb.php" rel="nofollow">https://github.com/WebDevStudios/CMB2-Snippet-Library/blob/master/options-and-settings-pages/theme-options-cmb.php</a></p>
  
  <p>Also can you let me know if I can achieve something by tweaking this code where key|value operates</p>
  
  <pre><code>$cmb = new_cmb2_box( array(
      'id'      =&gt; $this-&gt;metabox_id,
      'hookup'  =&gt; false,
      'show_on' =&gt; array(
          // These are important, don't remove
          'key'   =&gt; 'options-page',
          'value' =&gt; array( $this-&gt;key, )
      ),
  ) );
  </code></pre>
  
  <p>I've created the settings page by this code</p>
  
  <pre><code>add_submenu_page('edit.php?post_type=ch_product_showcase', 'Product Showcase Settings', 'Showcase Settings', 'edit_posts', basename(__FILE__), array( $this, 'chProductShowcaseSettingsOptions') );
  </code></pre>