Skip to content

Instantly share code, notes, and snippets.

@srikat
Created March 17, 2023 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srikat/6a0247487d7ba6e733d8a43555cc2f2e to your computer and use it in GitHub Desktop.
Save srikat/6a0247487d7ba6e733d8a43555cc2f2e to your computer and use it in GitHub Desktop.
[
{
"key": "group_62b91fec139fb",
"title": "Page Fields",
"fields": [
{
"key": "field_641405562f4ae",
"label": "Features",
"name": "features",
"aria-label": "",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "table",
"pagination": 0,
"min": 0,
"max": 0,
"collapsed": "",
"button_label": "Add Feature",
"rows_per_page": 20,
"sub_fields": [
{
"key": "field_641405672f4af",
"label": "Title",
"name": "title",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": "",
"parent_repeater": "field_641405562f4ae"
},
{
"key": "field_641405852f4b0",
"label": "Blurb",
"name": "blurb",
"aria-label": "",
"type": "textarea",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"rows": "",
"placeholder": "",
"new_lines": "",
"parent_repeater": "field_641405562f4ae"
},
{
"key": "field_641405972f4b1",
"label": "Active?",
"name": "active",
"aria-label": "",
"type": "true_false",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"message": "Should this be output on the front end?",
"default_value": 1,
"ui_on_text": "",
"ui_off_text": "",
"ui": 1,
"parent_repeater": "field_641405562f4ae"
}
]
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "page"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"description": "",
"show_in_rest": 0
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment