Terms Block

ཞིབ་བརྗོད།

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

Blocks

This plugin provides 3 blocks.

  • Terms Displays a list of all terms in the selected taxonomy.
  • Assigned Terms Displays a list of assigned terms in the selected taxonomy.
  • Terms (Deprecated) Displays a list of all terms in the selected taxonomy. (Deprecated)

གདེང་འཇོག

2024 ལོའི་ཟླ 3 ཚེས 8 ཉིན།
The missing star is because it does not write any class name or additional class name. Else it´s good.
2024 ལོའི་ཟླ 1 ཚེས 29 ཉིན།
This functionality should be in WP Core
2024 ལོའི་ཟླ 1 ཚེས 9 ཉིན།
An excellent plugin that allows for override of the template. Perfect for customising the front end display and works perfectly. Thank you 🙂
2022 ལོའི་ཟླ 12 ཚེས 6 ཉིན།
This plugin does just what I wanted. It looks just like the Category List block out of the box. However, it would be better if there were some CSS classes applied to the markup to make it possible to style this block effectively.
གདེང་འཇོག 4 ཡོངས་སུ་ཀློག

བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“Terms Block” is open source software. The following people have contributed to this plugin.

བྱས་རྗེས་འཇོག་མཁན།

དག་བཅོས་ཉིན་ཐོ།

2.1.0

  • support WordPress 6.3.
  • fix for deprecated parameters in get_terms.

2.0.3

  • use get_block_wrapper_attributes

2.0.2

  • use @wordpress/server-side-render

2.0.0

  • add assigned terms block
  • rename terms-block to terms

1.0.0

  • Tested on WordPress 5.8.

0.2.0

  • Add terms_block_get_terms_arguments filter.
  • Tested on WordPress 5.6.

0.0.5

  • First release.

0.0.1

  • Internal release.