WordPress/wp-includes/blocks/query/block.json

52 lines
895 B
JSON
Raw Normal View History

{
"apiVersion": 2,
"name": "core/query",
"title": "Query",
"category": "design",
"description": "Displays a list of posts as a result of a query.",
"textdomain": "default",
"attributes": {
"queryId": {
"type": "number"
},
"query": {
"type": "object",
"default": {
"perPage": null,
"pages": 0,
"offset": 0,
"postType": "post",
"categoryIds": [],
"tagIds": [],
"order": "desc",
"orderBy": "date",
"author": "",
"search": "",
"exclude": [],
"sticky": "",
"inherit": true
}
},
"tagName": {
"type": "string",
"default": "div"
},
"layout": {
"type": "object",
"default": {
"type": "list"
}
}
},
"providesContext": {
"queryId": "queryId",
"query": "query",
"layout": "layout"
},
"supports": {
"align": [ "wide", "full" ],
"html": false
},
"editorStyle": "wp-block-query-editor"
}