Hi everyone!
i’have a page where i add 4 local field groups with respective subfields.
Here it’s the group keys i use
[
“group_cGV0cnVjY2lfcmFjZV9vcHRpb25z”,
“group_Y2lyY3VpdF9pbmZvcm”,
“group_UmFjZVJlc3VsdA”
]
Everything works fine but in the admin, i use the js function acf.getPostBoxes() to select the tab containing the fields. unfortunately getPostBoxes returns a different order which is
[
“group_Y2lyY3VpdF9pbmZvcm”,
“group_UmFjZVJlc3VsdA”,
“group_cGV0cnVjY2lfcmFjZV9vcHRpb25z”
] so i cannot use the getPostBoxes()[0] to get the key of the first tab.
Does anyone know how to keep the same order i’ve added the fields when i call getPostBoxes() ?