Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Migration Issue

$
0
0

Replies: 0

Hey, I was using humanmade’s CMB which is outdated now and I want to upgrade to CMB2. So the thing is that single fields are working fine after converting the fields code to CMB2, but for the group fields, it’s not working as expected. As in CMB2 group is a repeater field and even after setting this as non-repeatable, It’s still storing fields data in an additional array.
Let me show you an example.

Humanmade:

Array
(
    [spec_network_technology] => GSM / CDMA / HSPA / EVDO / LTE
    [spec_networks_others] => Array
        (
            [cmb-field-0] => z
            [cmb-field-1] => x
            [cmb-field-2] => c
        )

)

CMB2:

Array
(
    [0] => Array
        (
            [spec_network_technology] => GSM / CDMA / HSPA / EVDO / LTE
            [spec_networks_others] => Array
                (
                    [0] => z
                    [1] => x
                    [2] => c
                )

        )

)

Viewing all articles
Browse latest Browse all 59525

Trending Articles