BACK TO DIRECTORY

Terms Block

by Toro_Unit (Hiroshi Urabe)

4.8
(4 ratings)

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-nameblock-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;
}

Plugin Details

Active Installs
40
Total Downloads
4,958
Version
2.1.0
Requires WP
6.0
Requires PHP
7.4
Tested Up To
6.3.10
Added
2020-09-18
Last Updated
2023-09-06 2:26am GMT

Ratings

5
3
4
1
3
0
2
0
1
0