跳到内容

Terms Block

v2.1.0

Toro_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.

  1. template-parts/blocks/terms-block/block-name–block-style.php
  2. 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;
}

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums