JS Categories List Widget
by Miguel Useche on WordPress.org
A simple Gutenberg block and JS widget (can be called from posts) for displaying categories in a list with some effects.
(16)

Here you can see a list of categories, those with sub-categories will habe a link on the right to expand its childs.
This plugin provides a widget and a filter to display a collapsible list of categories in your sidebar or posts by using vanilla Javascript.
Features
- Support for Gutenberg blocks. Add it to any FSE theme or Gutenberg compatible theme.
- Display a collapsed list of your archives to reduce space.
- Uses vanilla JS to add effects and to be compatible with all browsers.
- Select the symbol for expanding/collapsing categories
- Select categories to exclude, so it shows only the categories you want.
- Autoexpand selected category (including it parent or child).
- Support for multiple instances.
- Simple layout configuration
- Shortcode support [JsCategoriesList]
- Translated to Spanish, Italian Russian, Slovak, Czech.
- Compatible with most JS cache and minify plugins.
- And more to come…
Configuration
- Title: title of the widget.
- Trigger Symbol: characters to be displayed as a bullet.
- Symbol position: where to put the expand/collapse symbol.
- Effect: JS’s effect to use.
- Order by: display order of categories.
- Expand: if list should be expanded or callapsed by default.
- Show number of posts: display how many post are published in the category.
- Show empty categories: display categories with no posts.
- Categories to include: categories to be included from the list.
- Categories to exclude: categories to be excluded from the list.
Active installations1K+
Weekly downloads
44+109.52%
Version4.0.2
Last updated8/7/2025
WordPress version6.1
Tested up to6.8.2
PHP version7.0
Tags
blockcategoriesgutenbergjavascriptwidget