author | ymh <ymh.work@gmail.com> |
Fri, 05 Sep 2025 18:40:08 +0200 | |
changeset 21 | 48c4eec2b7e6 |
parent 19 | 3d72ae0968f4 |
child 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
18 | 1 |
{ |
19 | 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
3 |
"apiVersion": 3, |
18 | 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, |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
27 |
"taxQuery": null, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
28 |
"parents": [] |
18 | 29 |
} |
30 |
}, |
|
31 |
"tagName": { |
|
32 |
"type": "string", |
|
33 |
"default": "div" |
|
34 |
}, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
35 |
"namespace": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
36 |
"type": "string" |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
37 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
38 |
"enhancedPagination": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
39 |
"type": "boolean", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
40 |
"default": false |
18 | 41 |
} |
42 |
}, |
|
43 |
"providesContext": { |
|
44 |
"queryId": "queryId", |
|
45 |
"query": "query", |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
46 |
"displayLayout": "displayLayout", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
47 |
"enhancedPagination": "enhancedPagination" |
18 | 48 |
}, |
49 |
"supports": { |
|
50 |
"align": [ "wide", "full" ], |
|
51 |
"html": false, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
52 |
"layout": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
53 |
"interactivity": true |
18 | 54 |
}, |
55 |
"editorStyle": "wp-block-query-editor" |
|
56 |
} |