首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >自更新WordPress和ACF插件后,标签ACF 'repeater‘不再起作用

自更新WordPress和ACF插件后,标签ACF 'repeater‘不再起作用
EN

Stack Overflow用户
提问于 2019-07-16 23:45:57
回答 1查看 53关注 0票数 0

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

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

我也不知道原因。你有什么想法吗?

代码语言:javascript
复制
{
                "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
                    }
                ]
            }
EN

回答 1

Stack Overflow用户

发布于 2019-08-03 04:00:18

更新acf-component-field插件并在你的json中添加'field_group_key=component_group_id‘。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57061077

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档