Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#1433 closed defect (bug) (fixed)

Empty category hidden even if there are posts in a subcat

Reported by: ralesk Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Template Keywords: wp_list_cats list_cats
Focuses: Cc:


I’ve just spent some time trying to come up with a reason why some categories get hidden the moment I put them as subcats in a new category. I went through the source of WP (, so hey, it might not be relevant in, but I doubt) to see if there are category limits or anything, akin to the limits of links.

There are no such things — there is instead a feature that empty cats are not shown. However, this does not take into count such circumstances when the parent cat is itself postless, but there are subcats of it which have posts.

Other than that, I’m kind of missing cat-related options from the admin interface, but maybe that’s just lazy me — things like: cat order, show cat numbers, show empty cats.

Crosspost from the support forums — now that I finally found my way here :) I think this is a bug, at least.

Change History (1)

#1 @skippy
17 years ago

  • Component changed from General to Template
  • Keywords wp_list_cats list_cats added
  • Resolution set to fixed
  • Status changed from new to closed

Just tested this on a install, and the empty category is displayed if the sub-category is non-empty.

Note: See TracTickets for help on using tickets.