自从更新WordPress和ACF插件以来,标签ACF的“中继器”不再起作用

时间:2019-07-16 15:45:56

标签: wordpress advanced-custom-fields acfpro

我将WordPress应用程序从4.6.x更新到5.2.1。 我还将ACF Pro插件从4.x.x更新到了5.8.1。

从那时起,“ repeater”类型的ACF标签不再起作用: 他们不再出现在后台和应用程序的前面。 其他标签效果很好。

我不知道为什么。你有个主意吗?

{
                "key": "field_56f04b4f1d998",
                "label": "Layouts",
                "name": "layouts",
                "type": "repeater",
                "instructions": "",
                "required": 0,
                "conditional_logic": [],
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "collapsed": "",
                "min": "",
                "max": "",
                "layout": "block",
                "button_label": "Add layout",
                "sub_fields": [
                    {
                        "key": "field_573c2f5d67d89",
                        "label": "Type",
                        "name": "type",
                        "type": "select",
                        "instructions": "",
                        "required": 1,
                        "conditional_logic": 0,
                        "wrapper": {
                            "width": "",
                            "class": "",
                            "id": ""
                        },
                        "choices": {
                            "layout100": "1\/1",
                            "layout100_full": "1\/1 full",
                            "layout5050": "1\/2 + 1\/2",
                            "layout3366": "1\/3 + 2\/3",
                            "layout6633": "2\/3 + 1\/3"
                        },
                        "default_value": [
                            0
                        ],
                        "allow_null": 0,
                        "multiple": 0,
                        "ui": 0,
                        "ajax": 0,
                        "return_format": "value",
                        "placeholder": ""
                    },
                    {
                        "key": "field_5a266ce145c75",
                        "label": "Border top ?",
                        "name": "border_top",
                        "type": "true_false",
                        "instructions": "",
                        "required": 0,
                        "conditional_logic": 0,
                        "wrapper": {
                            "width": "",
                            "class": "",
                            "id": ""
                        },
                        "message": "",
                        "default_value": 1
                    }
                ]
            }

1 个答案:

答案 0 :(得分:0)

更新acf-component-field插件,并在json中添加“ field_group_key = component_group_id”。