cant add metabox for custom post types with mb builder

Support MB Builder cant add metabox for custom post types with mb builderResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10735
    brkardbrkard
    Participant

    Hi.

    I cant add metabox for custom post type with builder. Builder is not generate the code for custom post type even i select custom post type from settings of builder for metabox.
    Like below code

    function your_prefix_register_meta_boxes( $meta_boxes ) {
    $meta_boxes[] = array (
    'id' => 'untitled',
    'title' => 'untitled',
    'pages' => array(
    'post',
    'page',
    >>>'custpm-post-type', >>this is not generated with builder!

    #10752
    Anh TranAnh Tran
    Keymaster

    Hi,

    How is the CPT registered? With init hook and priority = 10?

    #10874
    brkardbrkard
    Participant

    Hi.

    I have created cpt with metabox post type extension..so i am not sure if it is With init hook and priority = 10?..

    Also i try to find the problem but i noticed there is no problem with new created metaboxes..This happens with an old date metabox that i created... I am still try to find the problem.

    And i try to import metabox to a new fresh install but i cant. After try to import i am gettiong error like this: Cannot load meta-box-import.

    #10880
    Anh TranAnh Tran
    Keymaster

    Hi,

    This happens with an old date metabox that i created

    Can you check the status of those meta boxes? Make sure they're published. You can check in the phpMyAdmin as well.

    And i try to import metabox to a new fresh install but i cant. After try to import i am gettiong error like this: Cannot load meta-box-import.

    Did you use the export/import functionality from the Builder?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.