🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Collapsing Categories icon
Maintained Tested up to 6.9.12 #15 in categories

Collapsing Categories

Adds a widget which uses Javascript to dynamically expand or collapse the set of posts for each category.

Active installs4K+1K+ tier
Downloads · 30d983▲ +19.4% vs prev. 30d
Rating4.1/557 reviews
Health score46/100Fair
All-time downloads297.5KSince Jan 2008
Support resolved0 / 10% in last 2 months
RequiresWP 5.0PHP any
Downloads · 7d290▲ +20.8% week over week
Our verdict

Use with caution

Collapsing Categories works, but test it on a staging site before relying on it in 2026. It runs on 4K+ sites, is rated 4.1/5 and was last updated 10 months ago, and scores 46/100 on our health check.

  • Momentum — downloads up 19.4% vs the previous 30 days
  • Only tested up to WordPress 6.9 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

173553Sep 4Oct 18Dec 2
Yesterday71
Daily average (1y)22
Peak day488Feb 12, 2026
Last 12 months7.9K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Collapsing Categories stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
categories #18 10,000 Best categories plugins →
navigation >100 7,138 Best navigation plugins →
sidebar >100 10,000 Best sidebar plugins →
widget >100 10,000 Best widget plugins →

Version adoption

Share of active sites per release.

  • 3.059.6%
  • 2.217.1%
  • 2.012.4%
  • 2.110.6%
  • 1.20.32%

Rating breakdown

★★★★★★★★★★ 4.1 from 57 reviews

  • 5★70.2%
  • 4★7.0%
  • 3★1.8%
  • 2★3.5%
  • 1★17.5%

About Collapsing Categories

From the official readme · v3.0.12

Description

Collapsing Categories creates an expandable list of categories and
subcategories. It can also expand to show posts. The primary usage is as a
widget, but you can also use the code in your theme manually if you wish (see
installation instructions)

Options

Options can be set
from the block panel. If you wish to insert the code into your theme manually
instead of using a widget, you can use the following options. These options
can be given to the collapsCat() function either as an array or in query
style, in the same manner as the wp_list_categories function.

$defaults=array(
   'showPostCount' => true,
   'inExclude' => 'exclude',
   'inExcludeCats' => '',
   'showPosts' => true, 
   'showPages' => false,
   'linkToCat' => true,
   'olderThan' => 0,
   'excludeAll' => '0',
   'catSortOrder' => 'ASC',
   'catSort' => 'catName',
   'postSortOrder' => 'ASC',
   'postSort' => 'postTitle',
   'expand' => '0',
   'defaultExpand' => '',
   'postTitleLength' => 0,
   'accordion' => 0,
   'catfeed' => 'none',
   'taxonomy' => 'category',
   'showPostDate' => false,
   'postDateAppend' => 'after',
   'postDateFormat' => 'm/d',
   'useCookies' => true,
   'showTopLevel' => true,
   'postsBeforeCats' => false,
   'expandCatPost' => true,
   'debug'=>'0'
);
  • inExclude
    • Whether to include or exclude certain categories
      • ‘exclude’ (default)
      • ‘include’
  • inExcludeCats
    • The categories which should be included or excluded
  • showPages
    • Whether or not to include pages as well as posts. Default if false
  • linkToCat
    • 1 (true), clicking on a category title will link to the category archive (default)
    • 0 (false), clicking on a category title expands and collapses
  • catSort
    • How to sort the categorys. Possible values:
      • ‘catName’ the title of the category (default)
      • ‘catId’ the Id of the category
      • ‘catSlug’ the url of the category
      • ‘catCount’ the number of posts in the category
      • ‘catOrder’ custom order specified in the categorys settings
  • catSortOrder
    • Whether categories should be sorted in normal or reverse
      order. Possible values:

      • ‘ASC’ normal order (a-z 0-9) (default)
      • ‘DESC’ reverse order (z-a 9-0)
  • postSort
    • How to sort the posts. Possible values:
      • ‘postDate’ the date of the post (default)
      • ‘postId’ the Id of the post
      • ‘postTitle’ the title of the post
      • ‘postComment’ the number of comments on the post
      • ‘postOrder’ sort by menu order
  • postSortOrder
    • Whether post should be sorted in normal or reverse
      order. Possible values:

      • ‘ASC’ normal order (a-z 0-9) (default)
      • ‘DESC’ reverse order (z-a 9-0)
  • expand
    • The symbols to be used to mark expanding and collapsing. Possible values:
      • ‘0’ Triangles (default)
      • ‘1’ + –
      • ‘2’ [+] [-]
      • ‘3’ images (you can upload your own if you wish)
      • ‘4’ custom symbols
  • customExpand
    • If you have selected ‘4’ for the expand option, this character will be
      used to mark expandable link categories
  • customCollapse
    • If you have selected ‘4’ for the expand option, this character will be
      used to mark collapsible link categories
  • postTitleLength
    • Truncate post titles to this number of characters (default: 0 = don’t
      truncate)
  • accordion
    • When set to true, expanding one category closes all others at that level
  • catfeed
    • Whether to add a link to the rss feed for a category. Possible values:
      • ‘none’ (default)
      • ‘text’ shows RSS
      • ‘image’ shows an RSS icon
  • taxonomy
    • Type of taxonmy to display. Possible values:
      • ‘category’ (default)
      • ‘link_category’
      • ‘post_tag’
      • ‘both’ (categories and tags)
      • any other registered taxononmy (e.g. recipe press uses recipe-categories)
  • showPostDate
    • When true, show the date of each post
  • postDateAppend
    • Show the date before or after the post title. Possible values:
      • ‘after’ (default)
      • ‘before’
  • postDateFormat
    • What format the post date is in. This uses the standard php date
      formatting codes
  • useCookies
    • When true, expanding and collapsing of categories is remembered for each
      visitor. When false, categories are always display collapsed (unless
      explicitly set to auto-expand). Possible values:

      • 1 (true) (default)
      • 0 (false)
  • showTopLevel
    • When set to false, the top level category will not be shown. This could
      be useful if you only want to show subcategories from one particular
      top-level category

      • 1 (true) (default)
      • 0 (false)
  • postsBeforeCats
    • When set to true, posts in category X will be ordered before
      subcategories of category X

      • 1 (true)
      • 0 (false) (default)
  • expandCatPost
    • When set to true, any category to which a post is assigned will
      automatically be expanded on a single post page.

      • 1 (true) (default)
      • 0 (false)
  • showEmptyCat
    • When set to true, empty categories are shown
      • 0 (false) (default)
      • 1 (true)
  • debug
    • When set to true, extra debugging information will be displayed in the
      underlying code of your page (but not visible from the browser). Use
      this option if you are having problems

Examples

collapsCat('catSort=ASC&expand=3&inExcludeCats=general,uncategorized')

This will produce a list with:
* categories shown in alphabetical order
* using images to mark collapsing and expanding
* exclude posts from the categories general and uncategorized

`

<?php
echo '

    ‘ . “\n”;
    if (function_exists(‘collapsCat’)) {
    collapsCat(array(
    ‘postSort’ => ‘postDate’,
    ‘postSortOrder’ => ‘DESC’,
    ) );
    } else {
    wp_get_categories(‘your_options_here’);
    }
    echo “

\n”;
?>
`

Demo

I use this plugin in my blog at http://robfelty.com

CAVEAT

Currently this plugin relies on Javascript to expand and collapse the links.
If a user’s browser doesn’t support javascript they won’t see the links to the
posts, but the links to the categories will still work (which is the default
behavior in wordpress anyways)

Installation

IMPORTANT!
Please deactivate before upgrading, then re-activate the plugin.

Unpackage contents to wp-content/plugins/ so that the files are in a
collapsing-categories directory.

Widget installation

Activate the plugin, then simply go the
Presentation > Widgets section and drag over the Collapsing Categories Widget.

Manual installation

Activate the plugin, then insert the following into your template: (probably
in sidebar.php). See the Options section for more information on specifying
options.

<?php 
echo "<ul class='collapsCatList'>\n";
if (function_exists('collapsCat')) {
  collapsCat();
} else {
  wp_get_categories('your_options_here');
}
echo "</ul>\n";
?>

Changelog

3.0.12 (2026.02.05)

  • Fixed possible SQL injection

3.0.11 (2025.05.1)

  • Fixed PHP warnings

3.0.10 (2025.04.30)

  • Fixed issue with activating the plugin

3.0.9 (2024.12.16)

  • Cleaned up some obsolete code
  • Removed REST API
  • Fixed security issue which could allow users using the REST API to inject
    SQL

3.0.8 (2023.12.01)

  • Updated deprecated __experimentalGroup to group
  • Compatible with WordPress 6.4.1
  • Got rid of some warning messages

3.0.7 (2023.10.10)

  • Fixed another issue with subcategory only option (Again, Thanks Boris for testing)

Full changelog on WordPress.org →

Screenshots

a few expanded categories with default theme, showing nested categories
a few expanded categories with default theme, showing nested categories
Standard Widget options
Standard Widget options

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Collapsing Categories alternatives

All categories plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 List category posts List category posts Very customizable plugin to list posts by category (or tag, author and more) in a post… by Fernando Briano 70K+ ★★★★★★★★★★ 4.7 (254) 5 months ago 64
2 Media Library Assistant Media Library Assistant Enhances the Media Library; powerful gallery and list shortcodes, full taxonomy support… by David Lingren 70K+ ★★★★★★★★★★ 4.8 (202) 1 week ago 94
3 PublishPress Taxonomies – Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms PublishPress Taxonomies Tags, Categories and WordPress terms are easy with PublishPress Taxonomies. Add a Tag or… by PublishPress 40K+ ★★★★★★★★★★ 4.6 (195) 2 days ago 93
4 Media Library Categories Media Library Categories Adds the ability to use categories in the media library. by jeffrey-wp 20K+ ★★★★★★★★★★ 4.2 (52) 3 months ago 65
5 FV Top Level Categories FV Top Level Categories This is a fix of Top Level Categories plugin for Wordpress 3.1. and above. by FolioVision 20K+ ★★★★★★★★★★ 4.4 (23) 1 year ago 53
6 Post Tags and Categories for Pages Post Tags and Categories for Pages Adds the built in WordPress categories and tags to your pages. by curtismchale 20K+ ★★★★★★★★★★ 4.8 (23) 11 months ago 61
7 Visual Term Description Editor Visual Term Description Editor Replaces the plain-text category and tag description editor with a visual editor. by Shea Bunge 10K+ ★★★★★★★★★★ 5 (21) 2 years ago 36
8 Essential Widgets Essential Widgets Essential Widgets is a WordPress plugin for widgets that allows you to create and add… by Catch Themes 10K+ ★★★★★★★★★★ 3.5 (2) 18 minutes ago 80
9 Hide Categories and Products for Woocommerce Hide Categories and Products for Woocommerce Hide Categories and Products for Woocommerce. This plugins requires WooCommerce to be… by NOUS Open Usefull & Simple 10K+ ★★★★★★★★★★ 4.1 (29) 2 months ago 71
10 Allow HTML in Category Descriptions Allow HTML in Category Descriptions This plugin allows you to use unfiltered HTML in your category descriptions by disabling… by Arno Esterhuizen 8K+ ★★★★★★★★★★ 5 (41) 9 months ago 61

FAQ

Collapsing Categories: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Collapsing Categories free?

Yes. Collapsing Categories is free to download and use from the official WordPress.org plugin directory.

Is Collapsing Categories safe to use in 2026?

Collapsing Categories works, but test it on a staging site before relying on it in 2026. It runs on 4K+ sites, is rated 4.1/5 and was last updated 10 months ago, and scores 46/100 on our health check.

How many websites use Collapsing Categories?

Collapsing Categories is active on 4K+ WordPress websites and has been downloaded 297,497 times since it launched in January 2008. It was downloaded 983 times in the last 30 days.

Does Collapsing Categories work with WordPress 7.1?

Collapsing Categories is officially tested up to WordPress 6.9.12, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Collapsing Categories last updated?

The latest version, 3.0.12, was released on February 12, 2026 (10 months ago).

Who makes Collapsing Categories?

Collapsing Categories is developed and maintained by robfelty.

What are the best alternatives to Collapsing Categories?

The most popular alternatives to Collapsing Categories are List category posts (70K+ installs), Media Library Assistant (70K+ installs) and PublishPress Taxonomies (40K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open