2021-05-19 11:09:27 -04:00
|
|
|
{
|
|
|
|
"apiVersion": 2,
|
|
|
|
"name": "core/query",
|
2021-06-08 13:33:22 -04:00
|
|
|
"title": "Query Loop",
|
2021-06-22 06:00:50 -04:00
|
|
|
"category": "theme",
|
|
|
|
"description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
|
2021-05-19 11:09:27 -04:00
|
|
|
"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"
|
|
|
|
},
|
2021-05-21 06:14:23 -04:00
|
|
|
"displayLayout": {
|
2021-05-19 11:09:27 -04:00
|
|
|
"type": "object",
|
|
|
|
"default": {
|
|
|
|
"type": "list"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"providesContext": {
|
|
|
|
"queryId": "queryId",
|
|
|
|
"query": "query",
|
2021-05-21 06:14:23 -04:00
|
|
|
"displayLayout": "displayLayout"
|
2021-05-19 11:09:27 -04:00
|
|
|
},
|
|
|
|
"supports": {
|
|
|
|
"align": [ "wide", "full" ],
|
2021-05-21 06:14:23 -04:00
|
|
|
"html": false,
|
|
|
|
"color": {
|
|
|
|
"gradients": true,
|
|
|
|
"link": true
|
|
|
|
},
|
|
|
|
"__experimentalLayout": true
|
2021-05-19 11:09:27 -04:00
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-query-editor"
|
|
|
|
}
|