🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
Collapsing Categories icon
gepflegt Getestet bis 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.

Aktive Installationen4K+1K + Stufe
Downloads · 30d983▲ +19.4% vs prev. 30d
Wertung4.1/557 reviews
Gesundheits-Score46/100Messe
Downloads aller Zeiten297.5KSince Jan 2008
Unterstützung gelöst0 / 10% in den letzten 2 Monaten
erfordertWP 5.0PHP ANY
Downloads · 7d290▲ +20.8% week over week
Unser Urteil

Mit Vorsicht verwenden

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
  • Nur getestet bis WordPress 6.9 (letzt ist 7.1)

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

173553Sep 4Oct 18Dec 2
Gestern71
Täglicher Durchschnitt (1 Jahr)22
Spitzentag488Feb 12, 2026
Letzte 12 Monate7.9K

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where Collapsing Categories stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
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 →

Versionsübernahme

Anteil aktiver Sites pro Release.

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

Bewertungsaufschlüsselung

★★★★★★★★★★ 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

Beschreibung

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)

Optionen

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

Beispiele

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.

Manuelle 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";
?>

Änderungsprotokoll

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)

Vollständiges Änderungsprotokoll auf 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

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best Collapsing Categories alternatives

All categories plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
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) Vor 5 Monaten 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) Vor 1 Woche 94
3 PublishPress-Taxonomien – Tag, Kategorie und Taxonomie-Manager – Autotagger fügt automatisch Begriffe hinzu Veröffentlichen Sie Taxonomien Tags, Kategorien und WordPress-Begriffe sind mit PublishPress-Taxonomien einfach. Fügen Sie ein Tag hinzu oder… von PublishPress 40K+ ★★★★★★★★★★ 4.6 (195) Vor 2 Tagen 93
4 Kategorien der Medienbibliothek Kategorien der Medienbibliothek Fügt die Möglichkeit hinzu, Kategorien in der Medienbibliothek zu verwenden. Von Jeffrey-WP 20K+ ★★★★★★★★★★ 4.2 (52) Vor 3 Monaten 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) Vor 1 Jahr 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) Vor 11 Monaten 61
7 Visual Term Beschreibung Editor Visual Term Beschreibung Editor Ersetzt die Klartext-Kategorie und den Tag-Beschreibungs-Editor durch einen visuellen Editor. von Shea Bunge 10K+ ★★★★★★★★★★ 5 (21) Vor 2 Jahren 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) 28 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) Vor 2 Monaten 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) Vor 9 Monaten 61

Fragen und Antworten

Collapsing Categories: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: 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).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen