Custom Fields
Re-Envisioned
Support Meta Box Builder cant add metabox for custom post types with mb builder

This topic contains 3 replies, has 2 voices, and was last updated by  Anh Tran 1 year, 2 months ago.

  • Creator
    Topic
  • #10735
    Resolved
    brkard
    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #10752

    Anh Tran
    Keymaster

    Hi,

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

    #10874

    brkard
    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 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 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.