Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't save repeatable key-value pairs after upgrade to 4.11.2 #1123

Closed
max-bulygin opened this issue May 30, 2017 · 1 comment
Closed

Can't save repeatable key-value pairs after upgrade to 4.11.2 #1123

max-bulygin opened this issue May 30, 2017 · 1 comment

Comments

@max-bulygin
Copy link

I use repeatable key-value pairs meta boxes in my theme. Here is the code I use in functions.php

function kp_skill_meter_meta_box( $meta_boxes )
{
$meta_boxes[] = array(
'title' => __( 'Skills Widget Area', 'kappe' ),
'post_types' => 'page',
'fields' => array(
array(
'id' => 'skill',
'name' => __( 'Skill', 'kappe' ),
'type' => 'key_value',
'clone' => true,
'sort_clone' => true
)
),
);
return $meta_boxes;
}

add_filter( 'rwmb_meta_boxes', 'kp_skill_meter_meta_box' );

This piece of code acts like a widget and should be widgetized, but I haven't implement that yet. Anyway this stopped working properly and after saving the post all fields but first one get lost.

@truongwp
Copy link
Contributor

Thanks @max-bulygin,
I fixed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants