Categories Block

The categories block organizes your previously published posts by category. 
This can be handy for readers who want to find more of your posts about certain topics.

Here’s what it looks like when it’s embedded in the Editor.
Here’s what it looks like when it’s embedded in the Editor.

The categories block can be added to a page by clicking on the Add Block button. It can be found in Widgets section. Alternatively, you can type /categories and press enter.

Add categories with a slash command.
Add categories with a slash command.

Detailed instructions on adding blocks can be found here.

Block Toolbar

Each block has its own block-specific controls that allow you to manipulate the block right in the editor.

Aligning Categories

The block toolbar for the categories block has options for alignment. To align the categories, first click on them, then choose from left, center, and right alignment. They will be left aligned by default.

Alignment controls for categories block
Alignment controls for categories block

Block Settings

Every block has specific options in the editor sidebar in addition to the options found in the block toolbar. If you do not see the sidebar, simply click the ‘cog’ icon next to the Publish button.

Categories Settings

The Categories Settings allow 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.

Categories Settings
Categories Settings

Display as Dropdown — Choose this option to display the categories in a dropdown menu rather than as a list. This is handy if you want to save space or have a lot of categories.

Categories Displayed as Dropdown
Categories Displayed as Dropdown

Show Hierarchy — If you have parent and child categories (subcategories within main categories) you can choose to display the hierarchy or just 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.

Categories with Hierarchy Shown
Categories with Hierarchy Shown

Show Post Counts — If this option is chosen, the total number of published posts for that particular category will display next to the link. You can show post counts with both the list and dropdown menu formats.

Categories with Post Counts Shown
Categories with Post Counts Shown

Advanced

The advanced tab lets you add a CSS class to your block, allowing you to write custom CSS and style the block as you see fit.

The advanced section lets you add a CSS class to your block.
The advanced section lets you add a CSS class to your block.