meta boxes - Any way to add metaboxes in custom settings page of custom post type in wordpress? -


hi add metaboxes under custom settings page under custom post type. can create metaboxes custom post types can create theme options. can't find way add metaboxes on custom settings page. post type hierarchy below: products - item - add item - product category - product settings

i want add metaboxes & create options page on settings page. can please guide me through one.

i've been trying follow gist can't find way. https://github.com/webdevstudios/cmb2-snippet-library/blob/master/options-and-settings-pages/theme-options-cmb.php

also can let me know if can achieve tweaking code key|value operates

$cmb = new_cmb2_box( array(     'id'      => $this->metabox_id,     'hookup'  => false,     'show_on' => array(         // these important, don't remove         'key'   => 'options-page',         'value' => array( $this->key, )     ), ) ); 

i've created settings page code

add_submenu_page('edit.php?post_type=ch_product_showcase', 'product showcase settings', 'showcase settings', 'edit_posts', basename(__file__), array( $this, 'chproductshowcasesettingsoptions') ); 

i've done many times. use code , tweak needs:

https://gist.github.com/turtlepod/5203512

found link in comments of page:

https://gist.github.com/bueltge/757903

originally posted here:

wordpress - add meta box options page

normally don't answering links site, in case code on gist , never go away!


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -