author | ymh <ymh.work@gmail.com> |
Fri, 05 Sep 2025 18:52:52 +0200 | |
changeset 22 | 8c2e4d02f4ef |
parent 21 | 48c4eec2b7e6 |
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.", |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
8 |
"keywords": [ "posts", "list", "blog", "blogs", "custom post types" ], |
18 | 9 |
"textdomain": "default", |
10 |
"attributes": { |
|
11 |
"queryId": { |
|
12 |
"type": "number" |
|
13 |
}, |
|
14 |
"query": { |
|
15 |
"type": "object", |
|
16 |
"default": { |
|
17 |
"perPage": null, |
|
18 |
"pages": 0, |
|
19 |
"offset": 0, |
|
20 |
"postType": "post", |
|
21 |
"order": "desc", |
|
22 |
"orderBy": "date", |
|
23 |
"author": "", |
|
24 |
"search": "", |
|
25 |
"exclude": [], |
|
26 |
"sticky": "", |
|
19 | 27 |
"inherit": true, |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
28 |
"taxQuery": null, |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
29 |
"parents": [], |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
30 |
"format": [] |
18 | 31 |
} |
32 |
}, |
|
33 |
"tagName": { |
|
34 |
"type": "string", |
|
35 |
"default": "div" |
|
36 |
}, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
37 |
"namespace": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
38 |
"type": "string" |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
39 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
40 |
"enhancedPagination": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
41 |
"type": "boolean", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
42 |
"default": false |
18 | 43 |
} |
44 |
}, |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
45 |
"usesContext": [ "templateSlug" ], |
18 | 46 |
"providesContext": { |
47 |
"queryId": "queryId", |
|
48 |
"query": "query", |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
49 |
"displayLayout": "displayLayout", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
50 |
"enhancedPagination": "enhancedPagination" |
18 | 51 |
}, |
52 |
"supports": { |
|
53 |
"align": [ "wide", "full" ], |
|
54 |
"html": false, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
55 |
"layout": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
56 |
"interactivity": true |
18 | 57 |
}, |
58 |
"editorStyle": "wp-block-query-editor" |
|
59 |
} |