Last metabox update broke tabs in WPML
- This topic has 5 replies, 2 voices, and was last updated 8 years, 6 months ago by
Anh Tran.
-
AuthorPosts
-
March 29, 2017 at 3:56 AM #5417
claudia_bettiol
ParticipantEverything 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
March 29, 2017 at 10:23 AM #5421Anh Tran
KeymasterHi 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.
March 31, 2017 at 2:29 PM #5440claudia_bettiol
ParticipantIt 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 Italianprivate 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 ]; }April 14, 2017 at 5:03 PM #5622claudia_bettiol
ParticipantStill no reply nor fix after two weeks
Problem still happens with the latest version of metabox.
Rolling back solves the problem.April 15, 2017 at 3:43 PM #5684Anh Tran
KeymasterHi Claudia,
Sorry for the late reply. I'll check and fix it soon.
April 18, 2017 at 11:57 AM #5702Anh Tran
KeymasterI got it.
The problem is some fields are set to "Don't translate" mode.
Those fields won't be visible to enter the content. For more info, please check this topic.
-
AuthorPosts
- The topic ‘Last metabox update broke tabs in WPML’ is closed to new replies.