You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.1 KiB

9 months ago
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "core/query",
"title": "Query Loop",
"category": "theme",
"description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
"textdomain": "default",
"attributes": {
"queryId": {
"type": "number"
},
"query": {
"type": "object",
"default": {
"perPage": null,
"pages": 0,
"offset": 0,
"postType": "post",
"order": "desc",
"orderBy": "date",
"author": "",
"search": "",
"exclude": [],
"sticky": "",
"inherit": true,
"taxQuery": null,
"parents": []
}
},
"tagName": {
"type": "string",
"default": "div"
},
"namespace": {
"type": "string"
},
"enhancedPagination": {
"type": "boolean",
"default": false
}
},
"providesContext": {
"queryId": "queryId",
"query": "query",
"displayLayout": "displayLayout",
"enhancedPagination": "enhancedPagination"
},
"supports": {
"align": [ "wide", "full" ],
"html": false,
"layout": true,
"interactivity": true
},
"editorStyle": "wp-block-query-editor"
}