To add a category list, click on the Add Block button and select the Categories block. Alternatively, you can start typing
/categories in a new paragraph block, then press enter.
Every block comes with unique and block-specific controls that allow you to manipulate the block directly right in the editor. The categories block is pretty straightforward so it only has the alignment controls and more options control.
A block-specific toolbar will appear whenever you select the categories block. Three of the options are for the block’s alignment, right, center, and left. Choosing the right or left will allow you to place another block alongside the categories block moreover picking center will return the block to its default, taking up the full width of the post or page content.
This feature allows you to choose whether to display the categories list as a dropdown, rather than the default bulleted list. You also have the choice to show the hierarchy and/or post counts.
Choose this option to display the categories in a dropdown menu rather than as a list. This option might be useful in case you want to save space or have lots of categories to display.
If you have parent and child categories (subcategories within main categories) you can choose to display the hierarchy or simply leave the list flat, without indicating which subcategories fit inside your main categories. You can show category hierarchies with both the list and dropdown menu formats.
If this option is chosen, the total number of published posts for that particular category will display next to the link. This option can be used with both the list and dropdown menu formats.
In addition to the options found in the block’s toolbar, you may locate the block specific settings in the editor sidebar panel. Clicking on the cog icon next to the publish button will toggle the visibility of this panel.
The advanced tab lets you add a CSS class to your block, allowing you to write custom CSS and apply styles to the block as you see fit.