Terms Query


目录


An advanced block that allows displaying taxonomy terms based on different query parameters and visual configurations.

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
termQuery object {"perPage":10,"taxonomy":"category","order":"asc","orderBy":"name","include":[],"hideEmpty":true,"showNested":false,"inherit":false} —
tagName string "div" —

Supports

Defined via the supports property in block.json.

Context

Defined via the usesContext and providesContext properties in block.json.

Uses context:

Provides context:

Block Markup

This is a static block. The markup is saved directly in the post content.

<!-- wp:terms-query -->
<div class="wp-block-terms-query"></div>
<!-- /wp:terms-query -->

Source


版本号 #2
由 壳壳虫 创建于 2026-10-31 18:33:50 UTC
由 壳壳虫 更新于 2026-10-31 18:33:52 UTC