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

61 lines
1.3 KiB
JSON
Raw Permalink Normal View History

2021-07-23 11:58:50 +02:00
{
2022-06-16 14:03:35 +02:00
"$schema": "https://schemas.wp.org/trunk/block.json",
2023-09-26 10:33:34 +02:00
"apiVersion": 3,
2021-07-23 11:58:50 +02:00
"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.",
2025-04-25 12:30:07 +02:00
"keywords": [ "posts", "list", "blog", "blogs", "custom post types" ],
2021-07-23 11:58:50 +02:00
"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": "",
2022-06-16 14:03:35 +02:00
"inherit": true,
2022-12-15 17:47:31 +01:00
"taxQuery": null,
2025-02-28 08:42:11 +01:00
"parents": [],
"format": []
2021-07-23 11:58:50 +02:00
}
},
"tagName": {
"type": "string",
"default": "div"
},
2022-12-15 17:47:31 +01:00
"namespace": {
"type": "string"
2023-12-07 09:44:11 +01:00
},
"enhancedPagination": {
"type": "boolean",
"default": false
2021-07-23 11:58:50 +02:00
}
},
2025-04-25 12:30:07 +02:00
"usesContext": [ "templateSlug" ],
2021-07-23 11:58:50 +02:00
"providesContext": {
"queryId": "queryId",
"query": "query",
2023-12-07 09:44:11 +01:00
"displayLayout": "displayLayout",
"enhancedPagination": "enhancedPagination"
2021-07-23 11:58:50 +02:00
},
"supports": {
"align": [ "wide", "full" ],
"html": false,
2024-04-17 11:32:24 +02:00
"layout": true,
2025-12-12 13:15:55 +01:00
"interactivity": true,
"contentRole": true
2021-07-23 11:58:50 +02:00
},
2024-04-17 11:32:24 +02:00
"editorStyle": "wp-block-query-editor"
2021-07-23 11:58:50 +02:00
}