Add 3 term blocks.
Author: | Tarosky INC. (profile at wordpress.org) |
WordPress version required: | 5.9 |
WordPress version tested: | 6.4.1 |
Plugin version: | 1.2.0 |
Added to WordPress repository: | 28-09-2021 |
Last updated: | 21-11-2023 |
Rating, %: | 100 |
Rated by: | 1 |
Plugin URI: | https://wordpress.org/plugins/taro-taxonomy-b... |
Total downloads: | 2 199 |
Active installs: | 30+ |
Click to start download |
This plugin supports 3 term blocks.
- Terms Block – Display all terms in the specified taxonomy. Usefull to display terms list like glossary.
- Post’s Terms Block – Display terms assigned to the post in the specified taxonomy.
- 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.
FAQ
ChangeLog