Add theme options to custom post type admin pages [closed]

Theme uses custom meta boxes. If you go this path,

/wp-content/themes/bridge/framework/admin/meta-boxes

you will find folders. There is a map.php file in this folders. You can duplicate this folders and rename if you want to use for your CPT’s.

Theme uses own metabox class QodeMetaBox when you duplicate files you need to change this code (for ex. i use SEO metabox);

$qodeSeo = new QodeMetaBox("page", "Qode SEO");
$qodeFramework->qodeMetaBoxes->addMetaBox("page_seo",$qodeSeo);

to:

$qodeSeo = new QodeMetaBox("post_type", "Qode SEO");
$qodeFramework->qodeMetaBoxes->addMetaBox("post_type_seo",$qodeSeo);

Where post_type is the string used as first parameter in register_post_type(), and post_type_seo is an unique string.

after that you need to include/call your new map file into qode-meta-boxes-setup.php after require_once("carousels/map.php");;

require_once("your-new-folder-name/map.php");

In addition to the above, the post_type needs to be added in the qode_meta_box_save function, so that the values will actually be saved to the database. Change framework\qode-framework.php on line 340:

$postTypes = array( "page", "post", "portfolio_page", "testimonials", "slides", "carousels");

to:

$postTypes = array( "page", "post", "portfolio_page", "testimonials", "slides", "carousels", "post_type");

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)