Skip to content

Instantly share code, notes, and snippets.

@antishow
Created August 2, 2018 13:42
Show Gist options
  • Save antishow/f93ee880874a1a79190a7460d0db9bdf to your computer and use it in GitHub Desktop.
Save antishow/f93ee880874a1a79190a7460d0db9bdf to your computer and use it in GitHub Desktop.
ACF Field Group JSON
{
"key": "group_card_grid",
"title": "Layout: Card Grid",
"fields": [
{
"key": "field_card_grid_style",
"label": "Card Style",
"name": "card_style",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"post_card": "Post Card",
"card_team_member": "Team Member"
},
"default_value": [
"post"
],
"allow_null": 0,
"multiple": 0,
"ui": 0,
"return_format": "value",
"ajax": 0,
"placeholder": ""
},
{
"key": "field_card_grid_data",
"label": "Card Data",
"name": "card_data",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"collapsed": "",
"min": 0,
"max": 0,
"layout": "block",
"button_label": "Add Card",
"sub_fields": [
{
"key": "field_5b587d1517176",
"label": "",
"name": "_post_card_fields",
"type": "clone",
"instructions": "",
"required": 0,
"conditional_logic": [
[
{
"field": "field_card_grid_style",
"operator": "==",
"value": "post_card"
}
]
],
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"clone": [
"group_post_card"
],
"display": "group",
"layout": "block",
"prefix_label": 0,
"prefix_name": 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": 0,
"description": "",
"modified": 1533133929
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment