Last metabox update broke tabs in WPML

Support MB Tabs Last metabox update broke tabs in WPML

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5417
    claudia_bettiolclaudia_bettiol
    Participant

    Everything works fine with 4.10.3, the next version breaks the tabs in one language in WPML, they show, but the content doesn't. No errors in the console or whatsoever, the content is in the DIV but it' not being rendered

    #5421
    Anh TranAnh Tran
    Keymaster

    Hi Claudia,

    Can you post a screenshot and the code you use to register meta boxes? I'm having WPML on my localhost and don't see that problem.

    #5440
    claudia_bettiolclaudia_bettiol
    Participant

    It works fine in one language, but in the other just the tabs are showing, not the inside of them, here's some of the code
    This problem also happens in all the other registered meta boxes
    The WPML languages are English (primary) and Italian

    
        private function register_post_meta_boxes(&$meta_boxes, $prefix)
        {
            $fields = [];
    
            // Slideshow
            $fields[] = [
                'id' => $prefix . 'slideshow_media',
                'type' => 'image_advanced',
                'name' => __('Slideshow Media', 'snip'),
                'tab' => 'slideshow'
            ];
    
            // Interview
            $fields[] = [
                'id' => $prefix . 'is_interview',
                'name' => __('Is this post an interview?', 'snip'),
                'type' => 'checkbox',
                'tab' => 'interview'
            ];
    
            $fields[] = [
                'id' => $prefix . 'interviewed',
                'type' => 'user',
                'name' => __('Interviewed', 'snip'),
                'hidden' => ['is_interview', '=', '0'],
                'tab' => 'interview'
            ];
    
            $meta_boxes[] = [
                'title' => __('Additional Metadata', 'snip'),
                'post_types' => 'post',
                'tabs' => [
                    'slideshow' => [
                        'label' => __('Slideshow', 'snip'),
                        'icon' => 'dashicons-format-gallery'
                    ],
                    'interview' => [
                        'label' => __('Interview', 'snip'),
                        'icon' => 'dashicons-admin-users'
                    ]
                ],
                'fields' => $fields
            ];
        }
    
    
    #5622
    claudia_bettiolclaudia_bettiol
    Participant

    Still no reply nor fix after two weeks

    http://imgur.com/a/MtCZD

    Problem still happens with the latest version of metabox.
    Rolling back solves the problem.

    #5684
    Anh TranAnh Tran
    Keymaster

    Hi Claudia,

    Sorry for the late reply. I'll check and fix it soon.

    #5702
    Anh TranAnh Tran
    Keymaster

    I got it.

    The problem is some fields are set to "Don't translate" mode.

    https://imgur.com/CsWlwzU

    Those fields won't be visible to enter the content. For more info, please check this topic.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Last metabox update broke tabs in WPML’ is closed to new replies.