Sub Categories Widget

Description

Sometimes when you divide up your WordPress content into categories it all ends up in sub-categories of one or two main categories that don’t have any content themselves.

With the widget you can add a list of sub-categories even if the parent doesn’t have posts.

You can display and filter sub-categories in various ways:

  • Use the parent category as the widget title
  • Show post counts in bracket next to the name
  • Hide empty sub-categories
  • Add a link to the parent category to the widget title
  • Show the full sub-category tree so it include sub-sub categories and so on as well
  • Display the list as dropdown rather than as links
  • Use the first category of the current post as the parent
  • Exclude one or more sub-categories from the list
  • List the categories in reverse order

Reviews

Nice plugin

argosmedia

Nice plugin, easy to use. It would be nice to have an option to show the parent category as well. Not as widget title/link as you can do now, but just as a regular link. So if you are in category "Computers", you can show:

- Computers
-- Desktops
-- Laptops
-- Tablets

Instead of:

COMPUTERS
- Desktops
- Laptops
- Tablets

Another nice option would be to show subcats for the current category. So without having to create different widgets for each category.

Read all 13 reviews

Changelog

1.5

  • Added an option to display the categories in reverse order
  • Added the ability to change the selection label text of the dropdown list

1.4.1

  • Fixed missing parent category notice on pages when using irst category of the post option

1.4

  • Added an option to use the first category of the post as the parent
  • Improved and updated sanitation and validation

1.3.01

  • Updated the dropdown to be in name order (to match the list)

1.3

  • Added option to show as dropdown list
  • Tidy of widget options area

1.2

  • Added ability to exclude categories (with a comma delimited list)
  • Added option to show the entire sub-category tree rather than just one level

1.1

  • Highlights the current category if on a category archive page (use .current-cat to style)

1.0

  • First Production Release

0.1

  • Initial Release

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code