Unable to exclude metabox field with MB Include Exclude

Support MB Frontend Submission Unable to exclude metabox field with MB Include Exclude

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10557
    Orice Media SRLOrice Media SRL
    Participant

    I am using Frontend Submission and trying to exclude a metabox field from frontend. I have tried the following:

    $meta_boxes[] = array(
        'id'         => 'projects',
        'title'      => 'Setari proiecte',
        'post_types' => 'proiect',
        'context'    => 'normal',
        'priority'   => 'high',
        'fields'     => array(
            array(
                'name' => 'Continut',
                'id'   => 'bgt_content',
                'type' => 'textarea',
                'rows' => 20,
                'exclude' => array(
                    'ID' => array( 48 ),
                ),
            ),
    );
    

    and

    $meta_boxes[] = array(
        'id'         => 'projects',
        'title'      => 'Setari proiecte',
        'post_types' => 'proiect',
        'context'    => 'normal',
        'priority'   => 'high',
        'exclude' => array(
            'ID' => array( 48 ),
        ),
        'fields'     => array(
            array(
                'name' => 'Continut',
                'id'   => 'bgt_content',
                'type' => 'textarea',
                'rows' => 20,
            ),
    );
    

    But none of them are working.

    #10574
    Anh TranAnh Tran
    Keymaster

    Hi Orice,

    The MB Include Exclude was created before the MB Frontend Submission quite a long time. So, it checks well in the backend only. I'll make an update to support frontend soon next week.

    #10587
    Anh TranAnh Tran
    Keymaster

    Hi Orice,

    I've just updated both MB Include Exclude and MB Frontend Submission. Now they work well together and you can set rules to show/hide meta boxes in the frontend.

    #10697
    Orice Media SRLOrice Media SRL
    Participant

    Thank you, but I found another way to do it. By creating 2 boxes, one for frontend and the other for backend only.

    #10710
    Anh TranAnh Tran
    Keymaster

    It's a good alternative solution!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Unable to exclude metabox field with MB Include Exclude’ is closed to new replies.