Skip to content

Instantly share code, notes, and snippets.

@mcguffin
Created December 16, 2017 21:57
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 mcguffin/a105c1e6406ead2029b00979c26513b7 to your computer and use it in GitHub Desktop.
Save mcguffin/a105c1e6406ead2029b00979c26513b7 to your computer and use it in GitHub Desktop.
basic nested repeater
[
{
"key": "group_5a3593ed877c0",
"title": "Nested Repeaeter",
"fields": [
{
"key": "field_5a3593f76e021",
"label": "Outer",
"name": "outer",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"collapsed": "",
"min": 0,
"max": 0,
"layout": "table",
"button_label": "",
"sub_fields": [
{
"key": "field_5a3594016e022",
"label": "Inner",
"name": "inner",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"collapsed": "",
"min": 0,
"max": 0,
"layout": "table",
"button_label": "",
"sub_fields": [
{
"key": "field_5a35941d6e023",
"label": "Text-Thing",
"name": "text-thing",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": "",
"show_column": 0,
"show_column_weight": 1000,
"allow_quickedit": 0,
"allow_bulkedit": 0
}
]
}
]
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "post"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": ""
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment