Support Forum
Support › Meta Box Tabs › Last metabox update broke tabs in WPML
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
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.
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
];
}
Still no reply nor fix after two weeks
Problem still happens with the latest version of metabox.
Rolling back solves the problem.
Hi Claudia,
Sorry for the late reply. I'll check and fix it soon.
I 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.