| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 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 |
"keywords": [ "posts", "list", "blog", "blogs", "custom post types" ], |
| 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": "", |
| 27 |
"inherit": true, |
| 28 |
"taxQuery": null, |
| 29 |
"parents": [], |
| 30 |
"format": [] |
| 31 |
} |
| 32 |
}, |
| 33 |
"tagName": { |
| 34 |
"type": "string", |
| 35 |
"default": "div" |
| 36 |
}, |
| 37 |
"namespace": { |
| 38 |
"type": "string" |
| 39 |
}, |
| 40 |
"enhancedPagination": { |
| 41 |
"type": "boolean", |
| 42 |
"default": false |
| 43 |
} |
| 44 |
}, |
| 45 |
"usesContext": [ "templateSlug" ], |
| 46 |
"providesContext": { |
| 47 |
"queryId": "queryId", |
| 48 |
"query": "query", |
| 49 |
"displayLayout": "displayLayout", |
| 50 |
"enhancedPagination": "enhancedPagination" |
| 51 |
}, |
| 52 |
"supports": { |
| 53 |
"anchor": true, |
| 54 |
"align": [ "wide", "full" ], |
| 55 |
"html": false, |
| 56 |
"layout": true, |
| 57 |
"interactivity": true |
| 58 |
}, |
| 59 |
"editorStyle": "wp-block-query-editor" |
| 60 |
} |
| 61 |
|