| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "core/terms-query", |
| 5 |
"title": "Terms Query", |
| 6 |
"category": "theme", |
| 7 |
"description": "An advanced block that allows displaying taxonomy terms based on different query parameters and visual configurations.", |
| 8 |
"keywords": [ "terms", "taxonomy", "categories", "tags", "list" ], |
| 9 |
"textdomain": "default", |
| 10 |
"attributes": { |
| 11 |
"termQuery": { |
| 12 |
"type": "object", |
| 13 |
"default": { |
| 14 |
"perPage": 10, |
| 15 |
"taxonomy": "category", |
| 16 |
"order": "asc", |
| 17 |
"orderBy": "name", |
| 18 |
"include": [], |
| 19 |
"hideEmpty": true, |
| 20 |
"showNested": false, |
| 21 |
"inherit": false |
| 22 |
} |
| 23 |
}, |
| 24 |
"tagName": { |
| 25 |
"type": "string", |
| 26 |
"default": "div" |
| 27 |
} |
| 28 |
}, |
| 29 |
"usesContext": [ "templateSlug" ], |
| 30 |
"providesContext": { |
| 31 |
"termQuery": "termQuery" |
| 32 |
}, |
| 33 |
"supports": { |
| 34 |
"anchor": true, |
| 35 |
"align": [ "wide", "full" ], |
| 36 |
"html": false, |
| 37 |
"layout": true, |
| 38 |
"interactivity": true |
| 39 |
} |
| 40 |
} |
| 41 |
|