18
|
1 |
{ |
19
|
2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
18
|
3 |
"apiVersion": 2, |
|
4 |
"name": "core/query", |
|
5 |
"title": "Query Loop", |
|
6 |
"category": "theme", |
|
7 |
"description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.", |
|
8 |
"textdomain": "default", |
|
9 |
"attributes": { |
|
10 |
"queryId": { |
|
11 |
"type": "number" |
|
12 |
}, |
|
13 |
"query": { |
|
14 |
"type": "object", |
|
15 |
"default": { |
|
16 |
"perPage": null, |
|
17 |
"pages": 0, |
|
18 |
"offset": 0, |
|
19 |
"postType": "post", |
|
20 |
"order": "desc", |
|
21 |
"orderBy": "date", |
|
22 |
"author": "", |
|
23 |
"search": "", |
|
24 |
"exclude": [], |
|
25 |
"sticky": "", |
19
|
26 |
"inherit": true, |
|
27 |
"taxQuery": null |
18
|
28 |
} |
|
29 |
}, |
|
30 |
"tagName": { |
|
31 |
"type": "string", |
|
32 |
"default": "div" |
|
33 |
}, |
|
34 |
"displayLayout": { |
|
35 |
"type": "object", |
|
36 |
"default": { |
|
37 |
"type": "list" |
|
38 |
} |
|
39 |
} |
|
40 |
}, |
|
41 |
"providesContext": { |
|
42 |
"queryId": "queryId", |
|
43 |
"query": "query", |
|
44 |
"displayLayout": "displayLayout" |
|
45 |
}, |
|
46 |
"supports": { |
|
47 |
"align": [ "wide", "full" ], |
|
48 |
"html": false, |
|
49 |
"color": { |
|
50 |
"gradients": true, |
19
|
51 |
"link": true, |
|
52 |
"__experimentalDefaultControls": { |
|
53 |
"background": true, |
|
54 |
"text": true |
|
55 |
} |
18
|
56 |
}, |
|
57 |
"__experimentalLayout": true |
|
58 |
}, |
|
59 |
"editorStyle": "wp-block-query-editor" |
|
60 |
} |