How to Add Categories Blocks in WordPress
Categories List Block is a feature that helps to add a list of categories to posts or pages. Displaying a list of categories within your WordPress content can be visually appealing. The Categories List Block is very valuable for bloggers and content creators seeking to enhance navigation and improve the user experience.
We will explore how the Categories List Block in WordPress contributes to creating more intuitive and structured websites and highlight its significance and functionalities.
How to Add the Categories List Block
To add the categories lis block in WordPress post or page follow the steps:
Go to the WordPress left-side pan.
go to Pages >> Add New Page.
or
go to Posts >> Add New Post.
After adding the title and content, click again +sign to add a new block.
Search for categories in the block box as shown below in the picture.
Click Categories List.
After Clicking the Categories List you can see all categories are listed on the page.
You can change the display option for the categories block.
Page Categories Display Options
By default, all categories are displayed on the page in a list. You can choose how categories are displayed on either the page or the post page. You have the option of displaying Categories in a drop down, including post counts, only showing top-level categories, showing empty categories, or showing hierarchy.
Options For Displaying Top-Level Categories
As shown in the picture, click on the categories list.
On the right side panel, you will see the settings option.
Click the option Show only top level categories.
Display Categories and Subcategories in Hierarchy
In the settings option, in the right side panel.
Click the option Show hierarchy.
Categories and subcategories will be displayed in a hierarchical order.
Display Post Counts With Categories
In the settings option in the right pan.
Click the option Show post counts.
It will display the total number of posts in each category and subcategories.
Display Categories As Dropdown
In the settings option in the right pan.
Click the option Display as dropdown.
It will display the category and subcategories in a dropdown.
All these categories display options change the way categories look on the category page.
Here you can see we have selected the option Show hierarchy and Show post counts.
Conclusion
In this article, we have explained, how to display subcategories on category pages. Your website visitors can benefit from better content discovery and more structured navigation when categories and subcategories are displayed on pages.
Improved hierarchical order is a key factor in improving SEO and attracting more traffic. By organizing content into categories and subcategories, proper navigation and display can be achieved.
The purpose of this article is to assist you in providing knowledge about displaying categories and subcategories on a dedicated page in WordPress.