WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: collapsing-categories (Used by 119 domains)

Collapsing Categories

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

`

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)

DomainExposuresHeadersLast Checked
s*u*d*l*k*t*e*.com (WP 7.0) F Jul 2, 2026
w*r*r*d*p*o*e*t.com (WP 7.0) F Jul 1, 2026
i*a*e*r*s*o*t*r*.com F Jul 1, 2026
g*n*l*m*n*b*t*e*.com (WP 7.0) F Jul 1, 2026
g*e*n*i*h*r*e*o*s*r*a*c*.org F Jul 1, 2026
j*n*a*i*a*g*a*.com (WP 6.9.4) F Jun 30, 2026
w*i*e*s*a*e.com F Jun 30, 2026
p*o*o*o*n*t.org (WP 7.0) F Jun 30, 2026
m*g*v*s*o*.c*m.au (WP 7.0) F Jun 30, 2026
t*i*b*r.md (WP 7.0) F Jun 30, 2026
j*g*r*a*o*b*a*s*.es (WP 7.0) D Jun 17, 2026
c*n*e*r*b*r*s.o*g.au (WP 7.0) F Jun 17, 2026
p*s*i*k*.ru F Jun 17, 2026
l*o*t*o*s*e*.ru (WP 5.3.21) F Jun 14, 2026
l*w*n*s*r*.com (WP 6.9.4) F Jun 14, 2026
s*o*s.ru D Jun 13, 2026
p*e*s*o*n*i*.o*g.za (WP 7.0) F Jun 12, 2026
s*d*l*t.nl (WP 6.9.4) F Jun 6, 2026
p*e*s*o*n*i*s*.o*g.za (WP 6.9.4) F Jun 3, 2026
t*c*i*o*g*i*o*a.es (WP 7.0) F Jun 3, 2026

Top 50 Plugins

Plugin Count
elementor 1,773,066
contact-form-7 1,754,699
elementor-pro 1,053,398
woocommerce 816,868
revslider 609,950
jetpack 456,151
js_composer 420,819
wp-rocket 341,566
essential-addons-for-elementor-lite 265,266
complianz-gdpr 257,980
gravityforms 257,686
google-site-kit 232,621
cookie-law-info 228,902
instagram-feed 225,266
sitepress-multilingual-cms 210,874
header-footer-elementor 207,407
google-analytics-for-wordpress 206,188
bluehost-wordpress-plugin 192,588
elementskit-lite 180,622
gutenberg 167,311
cookie-notice 149,235
litespeed-cache 143,547
gtranslate 125,193
wpforms-lite 124,272
the-events-calendar 122,579
astra-sites 113,631
gutenberg-core 113,508
popup-maker 110,000
woocommerce-payments 109,709
tablepress 102,202
honeypot 97,891
astra-addon 93,947
wp-smushit 91,090
duracelltomi-google-tag-manager 90,451
coblocks 89,789
layerslider 89,525
all-in-one-seo-pack 89,300
bb-plugin 87,066
akismet 85,166
premium-addons-for-elementor 84,433
ml-slider 83,034
cleantalk-spam-protect 82,813
mailchimp-for-wp 82,012
megamenu 80,374
woocommerce-gateway-stripe 79,700
jet-engine 77,827
fusion-builder 77,281
ewww-image-optimizer 76,638
wp-pagenavi 76,523
smart-slider-3 76,327

Top 50 Themes

Theme Count
hello-elementor 621,543
Divi 497,327
astra 415,116
flatsome 137,795
Avada 121,363
generatepress 114,678
oceanwp 80,569
pub 79,286
kadence 78,818
enfold 68,928
salient 65,362
twentyseventeen 54,403
bb-theme 53,484
betheme 52,451
twentytwentyfour 52,191
blocksy 51,007
cocoon-master 49,241
dt-the7 45,528
twentytwentyfive 44,925
woodmart 42,693
h4 39,561
neve 38,220
Avada-Child-Theme 36,954
gox 36,252
bridge 31,437
twentytwentyone 30,343
lightning 29,939
twentytwenty 28,835
swell 27,982
bricks 26,516
Impreza 26,104
Newspaper 24,234
twentytwentythree 22,139
epik-redesign 19,181
twentytwentytwo 18,831
uncode 18,592
twentysixteen 17,623
pro 17,621
sydney 16,585
storefront 16,374
Total 14,410
hello-theme-child-master 14,004
factory-templates-4 13,730
themify-ultra 12,971
extendable 12,866
hestia 12,599
yootheme 12,547
yith-wonder 12,223
porto 11,980
twentyfifteen 11,835