Skip to content

Instantly share code, notes, and snippets.

@karks88
Last active September 9, 2024 14:16
Show Gist options
  • Save karks88/aedba7ebd2d4ead63731f096835ed1b1 to your computer and use it in GitHub Desktop.
Save karks88/aedba7ebd2d4ead63731f096835ed1b1 to your computer and use it in GitHub Desktop.
File List Block Custom Fields
{
"key": "group_5cf655a17ba10",
"title": "File Listing",
"fields": [
{
"key": "field_5cf655b709906",
"label": "Custom File List",
"name": "",
"type": "message",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"message": "Use the fields below to manage a document listing for this page.",
"new_lines": "wpautop",
"esc_html": 0
},
{
"key": "field_5cf655ef09907",
"label": "Documents",
"name": "documents",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"collapsed": "field_5cf6565309909",
"min": 0,
"max": 0,
"layout": "table",
"button_label": "Add a Document",
"sub_fields": [
{
"key": "field_5cf6561409908",
"label": "File",
"name": "file",
"type": "file",
"instructions": "Upload a File\r\n(PDF, DOC\/DOCX, XLS\/XLSX formats accepted)",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "35",
"class": "",
"id": ""
},
"return_format": "array",
"library": "all",
"min_size": "",
"max_size": "",
"mime_types": ""
},
{
"key": "field_5cf6565309909",
"label": "Title",
"name": "title",
"type": "text",
"instructions": "Give this document a title.",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
}
]
}
],
"location": [
[
{
"param": "block",
"operator": "==",
"value": "acf\/my-file-list"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": [
"permalink"
],
"active": true,
"description": "",
"show_in_rest": 0,
"modified": 1648667227
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment