The Terms Query block displays a list of categories, tags, or custom taxonomy terms. In this guide, you will learn how to add and customize the Terms Query block on your WordPress.com site.
In this guide
Have a question?
Ask our AI assistantThe Terms Query block uses a nested structure of blocks to display your taxonomy terms:
- Terms Query: The parent container that holds all settings and child blocks.
- Term Template: Contains the layout for each term in the list (similar to Post Template in the Query Loop block).
- Term Name: Displays the name of each category, tag, or other taxonomy term.
- Term Count: Shows the number of posts associated with each term, if included.

Similar to the Query Loop block for posts, the Terms Query block automatically updates as you add or modify terms, making it ideal for building archive pages and content directories.
To add a Terms Query block to your site, follow these steps:
- Go to your site’s dashboard.
- Navigate to a page, post, or template where you want to display your terms and open it for editing.
- Click the + block inserter and search for “Terms Query.”
- Click the Terms Query icon to insert the block.
- Choose a layout variation: Name only or Name & Count:

The block automatically displays your site’s categories by default. The next section will show you how to change it to tags or another taxonomy on your site.
The Terms Query block can display categories, tags, project types or tags, or any custom taxonomy (typically added by plugins) on your site. To change the taxonomy, follow these steps:
- Use List View to select the parent Terms Query block.
- Open the block settings in the right sidebar.
- In the Taxonomy dropdown, select the taxonomy you want to display (e.g., Categories, Tags, or a custom taxonomy):

The Terms Query block includes several settings to control which terms appear and how they’re organized. Select the Terms Query block and open the block settings sidebar to access these options.
If you do not have the sidebar on the right, click the Settings icon in the top-right corner to bring up the settings. This icon looks like a square with two uneven columns:

Control the order in which terms appear:
- In the block settings sidebar, locate the “Order by” option.
- Choose to sort by name or by count.
- Click the Save button.
By default, all terms that meet the criteria defined in the block settings will be shown. Instead, you can select which exact terms will be shown in the list:
- In the block settings sidebar, find the “selected terms” setting.
- Type the first few letters of your category or tag name, and select it when it appears in the results.
- Repeat for each term you wish to display.
- Click the Save button.
By default, terms with no associated posts will be hidden. To change this behavior:
- In the block settings sidebar, locate the “Show empty terms” toggle.
- Enable this option to display terms even if they have no posts assigned.
- Click the Save button.
If your taxonomy uses a hierarchical structure (like categories with parent and child relationships), you can include these in the list:
- In the block settings sidebar, find the “Show nested terms” option.
- Enable or disable this setting based on your preference.
- Click the Save button.
Set how many terms to display:
- In the block settings sidebar, find the “max terms” setting.
- Enter the maximum number of terms to show, up to 100.
- If you select zero here, all terms will be shown.
- Click the Save button.
The Term Template block controls how each term appears in your list. You can add blocks between elements, change the layout, and style individual components.
To change the display mode:
- Use List View to select the Term Template block.
- In the block toolbar, choose between List and Grid views.
- If using Grid view, you can adjust the number of columns in the block settings sidebar.
You can insert additional blocks within the Term Template block to customize the appearance:
- Use List View to select the Term Template block.
- Click the + block inserter to add:
- A Term Description block to display the description you’ve added to each category or tag in the categories or tags site settings.
- Any other blocks, such as a Separator block between rows or an Image block for visual interest.
Blocks within the Terms Query block structure include their own settings:
The Term Name block displays the name of each term. To customize it:
- Click directly on a term name or use List View to select the Term Name block.
- In the block settings sidebar, you can enable or disable linking to the term’s archive page.
- Use the Styles tab to adjust typography, colors, spacing, and border.
The Term Count block shows the number of posts in each term. To customize it:
- Use List View to select the Term Count block.
- Use the Styles tab to adjust typography, colors, spacing, and border.