Taxonomy Terms
Basics
The
Taxonomy terms block allows you to showcase your WordPress tags, categories, custom taxonomies and terms.
The Taxonomy Terms block allows you total layout and design freedom since it is based on the same principle as the
query and
repeater blocks.
The Taxonomy Terms block allows you to specify the origin of the taxonomies you want to display.
If you are working on a template or a template part and have set to source to current, make sure to enable "dynamic preview" bu clicking the icon in the top menu.
When it comes to layout and design, you have a large palette of choice from columns, to inline block and flex with all the
styling features and properties.
Add
Click on the ➕ icon to open the Inserter Panel
Search for the
taxonomy termsblockClick on the
taxonomy termsblock to insert it into your page
If you want to add a repeater inside a parent block:
Open the Quick Insert panel in the parent block
Search for the
taxonomy termsblockClick on the
taxonomy termsblock to insert it into your parent block
Taxonomy Terms Placeholder
When you add a taxonomy terms block, a placeholder will open with "Taxonomy Terms source not set".
This means that you need to set your taxonomy terms in the Source tab of the Primary tab.
Click "+ Select Source" which will take you to the Primary tab and open up the Source dropdown. Choose between Current and Custom.
With the taxonomy terms block selected, you can set up the the styling of your block, such as source, layout, colours.
Source
You can choose between Current and Custom source properties.
Current Allows you to inherit the current taxonomies and terms that belong to the specific query.
Custom Gives you a choice of Post Types and Taxonomies allowing you complete freedom in showing the taxonomies and terms you want. When a custom source is selected, you are able to sort the taxonomies and terms by order and direction, while also being able to hide empty taxonomies if needed.
Modify
Select a
taxonomy termsblockOpen the Block Inspector
Navigate to the Primary tab
Find the Source Property
Select the desired Source
Current Source
Allows you to inherit the current taxonomies and terms that belong to the specific query.
Number
Allows you to choose how many taxonomy terms you wish to appear.
Custom Source
Gives you a choice of Post Types and Taxonomies allowing you complete freedom in showing the taxonomies and terms you want. When a custom source is selected, you are able to sort the taxonomies and terms by order and direction, while also being able to hide empty taxonomies if needed.
Post Type
Allows you to choose the type of post you want to include inside the taxonomy and terms block, such as Posts.
Modify
Select a
taxonomy termsblockOpen the Block Inspector
Navigate to the Primary tab
Find the Post Type property
Select the desired post types
Taxonomies
Only the taxonomies and terms from the chosen post types will appear.
Allows you to select the taxonomies you want to include.
Select
Select a
taxonomy termsblockOpen the Block Inspector
Navigate to the Primary tab
Find the Taxonomies property
Select the desired taxonomy or term
Exclude
You can exclude a single or multiple taxonomies and terms.
Allows you to exclude the taxonomies and terms you don't want to appear. This may include Categories, Tags, Navigation Menus, or specific posts or elements.
Modify
Select a
taxonomy termsblockOpen the Block Inspector
Navigate to the Primary tab
Find the Exclude property
Select the taxonomies or terms to exclude
Order By
Allows you to choose how to order the custom taxonomies you want to include, ID
Modify
Select a
taxonomy termsblockOpen the Block Inspector
Navigate to the Primary tab
Find the Taxonomies property
Select the desired order by
Direction
Allows you to choose the direction of the custom taxonomies you want to include such as unset, ascending, descending.
Select
Select a
taxonomy termsblockOpen the Block Inspector
Navigate to the Primary tab
Find the Direction property
Select the direction to apply to your taxonomies (unset, ascending, descending)
Number
Allows you to specify the number of terms you want to display.
Modify
Select a
taxonomy termsblockOpen the Block Inspector
Navigate to the Primary tab
Find the Number property
Enter your desired value
Hide Empty
Allows you to hide empty taxonomies.
Enable/Disable
Select a
taxonomy termsblockOpen the Block Inspector
Navigate to the Primary tab
Find the Hide Empty property
Toggle the Hide Empty property
Exclude Current
The Exclude Current property allows you to exclude the current taxonomy.
Last updated