
WP List Categories Block, explained
What is the Categories Block?
Do you want a category list block with counters that also works with custom taxonomies for WordPress? We did too, so we made it. Have you ever found yourself wanting to make a list of custom category items for a menu in WordPress? When you do, you will find that it is very difficult to do this without custom code. All the core blocks work with categories only, and you cannot use nesting or counters on the solutions we found. Enter the WP List Category block. This block is a direct drop-in for the wp_list_categories() PHP function found in the WordPress core library. It’s free and open source, so browse the code or watch the video to learn more.
See the block in action
Learn how this block works and why we created it.
Technical run down
The WP List Categories Block is a direct extraction of the wp_list_categories function inside WordPress. It is a documented PHP function that was used in classic themes for more complex website designs.
The wp_list_categories function has great documentation on the WordPress Development website.
The function is used as an extensive tool for listing categories. This includes custom taxonomies.
If you want this functionality in a block, you are however out of luck inside core WordPress and its block builder. I also found most other libraries did not represent the function.
I created a block for usage on websites I am building and decided to make it available for other users.
The block allows for a custom taxonomy to be selected as well as some of the basic functions that wp_list_categories allows.
Not every parameter is supported however you wont need all of them in a block.
You can reference the WordPress documentation for these specific attributes inside the block as I kept the names the same for parity of function.
You can download the code and get started with your creations from this Dynamic Block. View the source code via github.
See it in action
What it does
Custom Taxonomy Dropdown Selection
Select any public taxonomy registered in WordPress, including WooCommerce product categories, portfolio types, or ACF taxonomies.
Stylized Post Count Badges
Show live counts of items in each category with customizable pill colors, subtle backgrounds, and border radius options.
Native Full Site Editing (FSE) Compatible
Drop the block into archive templates, single post sidebars, navigation drawers, or footer mega-menus with zero CSS conflicts.
Hierarchical Parent / Child Support
Preserve parent-child taxonomy structures with configurable indentation and collapsible tree navigation.
Free Download
WP List Categories Block is free. Download it from GitHub and install it like any other plugin.
- The full plugin, free to use
- Use it on as many sites as you like
- Open source under GPLv2 or later
- Read the code and report issues on GitHub
How to install
- 1On GitHub, choose Code → Download ZIP.
- 2In WordPress, go to Plugins → Add New → Upload Plugin.
- 3Upload the ZIP file, then click Activate.
Technical specifications
- Type
- WordPress Plugin
- Category
- Blocks & Development
- Version
- 1.1.0
- Updated
- 2024-06-19
- WordPress
- 6.1 or higher
- PHP
- 8.1 to 8.5.12
- Tested up to
- WordPress 7.1.4
- Licence
- MIT
- Price
- Free
Works with
- WordPress
Frequently Asked Questions
Is the WP List Categories block free to use?
Yes, the WP List Categories block is entirely free to use. We believe in providing a straightforward solution without any hidden costs. Simply download the WP List Categories block plugin from our GitHub repository, follow the installation steps, and start managing your content visibility in search results. It's also got the open source license in the code. We use an MIT license on this one meaning you can use it however you want.
What themes work with this block?
So far we have tested Kadence, spectra and the default wordpress themes. It works well with these. You will get the most power out of this tool by using it as a starting point for your own complex designs which have custom post types and taxonomies.
Related Articles and Videos

Dynamic Blocks for Junior Devs
Learn how to create dynamic blocks in WordPress using PHP functions within the block editor. Step-by-step guide for junior developers.

WordCamp Sydney 2024
At WordCamp Sydney – 2024 I presented a talk on how I moved from PHP to React and blocks. Here are some notes for those people who attended my talk. Slides https://docs.google.com/presentation/d/1Ir8m3nyeCl0AY68YVMHnXRSu6cqaszuw5QjJqASoJhE/edit?usp=sharing Useful Links Example Repo on the multi block with Dynamic Setup https://github.com/MRKWP/wcsyd-blocks/tree/main WP Categories Link https://github.com/MRKWP/wp_list_categories/tree/main Rankmath Shortcodes to Blocks https://github.com/MRKWP/mrkwp-rankmath Eightshift Docs…




