Taro Taxonomy Blocks

外掛說明

This plugin supports 3 term blocks.

  1. Terms Block – Display all terms in the specified taxonomy. Usefull to display terms list like glossary.
  2. Post’s Terms Block – Display terms assigned to the post in the specified taxonomy.
  3. Post’s Terms Query Block – Display post list with same terms with the post.

Customization

Template Structure

To override look and feel, put template in your themes directory.

template-parts
- taxonomy-blocks
  - posts-list.php             // List of post in post's terms query blocks. 
  - post-loop.php              // Post link in post's terms query blocks. 
  - term-item.php              // Term link.
  - term-list.php              // Flat term list.
  - term-list-hierarchical.php // Hierarchical terms list.
taro_taxonomy_blocks_template filter hook is also available.

This will override the template file path.

Styles

To override styles, regsiter styels named taro-terms-block.
The plugin registers style at priority 20 of init hook, so registering style at priority 10.

add_action( 'init', function() {
    // Your own CSS.
    wp_register_style( 'taro-terms-block', $your_block_css_url, $deps, $version );
} );

Now your blocks will be styled by your CSS.

適用於區塊編輯器

這個外掛提供 3 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Terms
  • Post Terms
  • Post Terms Query

安裝方式

From Plugin Repository

Click install and activate it.

From Github

See releases.

常見問題集

Where can I get supported?

Please create new ticket on support forum.

How can I contribute?

Create a new issue or send pull requests.

使用者評論

2022 年 2 月 23 日
Took me ages to find a plugin that creates a block to display custom taxonomies of a post. This one does exactly what I needed. Thank you!
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Taro Taxonomy Blocks〉的開發相關工作。

參與者

〈Taro Taxonomy Blocks〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Taro Taxonomy Blocks〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.2.0

  • Drop support under PHP 7.2
  • Add support for advanced class setting in the editor.

1.1.2

  • Add filter for taxonomies list in selector.

1.1.0

  • Post terms query block accepts manually input term list.

1.0.0

  • First release.