【问题标题】:Label ACF 'repeater' doesn't work anymore since update WordPress and ACF plugin自更新 WordPress 和 ACF 插件以来,标签 ACF 'repeater' 不再起作用
【发布时间】:2019-11-25 09:58:21
【问题描述】:

我已将我的 WordPress 从 4.6.x 更新到 5.2.1。 我还将插件 ACF Pro 从 4.x.x 更新到 5.8.1。

从那时起,ACF'repeater' 类型的标签不再起作用: 它们不再出现在管理面板和应用程序前面。 其他标签效果很好。

我不知道为什么。你有什么想法吗?

{
                "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
                    }
                ]
            }

【问题讨论】:

  • 您是否尝试联系 ACF 支持或使用他们的支持论坛?这就是我要开始的地方。

标签: wordpress advanced-custom-fields acfpro


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2015-12-23
    • 1970-01-01
    • 1970-01-01
    • 2020-11-23
    • 2022-07-17
    • 2018-03-27
    • 2019-01-16
    • 2016-12-17
    • 2017-03-16
    相关资源
    最近更新 更多