Terms Block
v2.1.0Toro_Unit (Hiroshi Urabe) · 2020年9月18日 上架
Term list block. Displays a list of all terms in the selected taxonomy.
- 正在使用
- 40+
- 评分
- 4.8 / 5
- 累计下载
- 5,146
- 最近更新
- 2023年9月6日
4 条评价需要 WordPress 6.0+已测试到 6.3.15PHP 7.4+
Term list block. Displays a list of all terms in the selected taxonomy.
You can change the display by placing a template file in your theme.
- template-parts/blocks/terms-block/
block-name–block-style.php - template-parts/blocks/terms-block/
block-name.php
Filter for get_terms.
add_filter( 'terms_block_get_terms_arguments', 'my_filter', 10, 3 );
function my_filter( $args, $taxonomy, $attributes ) {
$args = array_merge( $args, array( 'orderby' => 'order' ) );
return $args;
}