• Hi,

    I just noticed something strange with Categories. If you have for example a Category 1, which has a sub Category 1.1 and a sub Category 1.2. Now imagine you make some posts and tag them with category 1.1 and some other posts marked with 1.2 ( you didn’t check Category 1 ).

    In this case the list of tags will not display Category 1 ( because there are no posts in that category ), but it won’t display the Sub Categories neither. IMHO it hsould display somehting like :

    Category 1 ( 0 Posts )
    Category 1.1 ( 4 Posts )
    Category 1.2 ( 2 Posts )

    To be absolutely correct it should even display :

    Category 1 ( 6 Posts )
    Category 1.1 ( 4 Posts )
    Category 1.2 ( 2 Posts )

    That might be a problem with wordpress though, since you can mark a post as being of Category 1.1 without it being marked as Category 1 ( though 1.1 is a Child of 1 ).

    I hope this is all clear, but if you don’t understand what I mena, feel free to contact me and I’l let you know what I’m talking about :-p

    Regards,

    Stefaan

Viewing 1 replies (of 1 total)
  • Brian Layman

    (@brianlayman)

    Look in your theme’s side bar code. You should see something like wp_list_cats. wp_list_cats by default hides all categories that are empty. You need to tell either create a post in each category, or tell it not to hide the empties. So, you need to change that call to wp_list_cats(“hideempty=0”); and that should solve your problem.

    I’m pretty certain I logged bug report on this a year or so ago, but with the major reworking of this area in 2.1. I don’t think it applies any more.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem when displaying list of Categories / SubCategories’ is closed to new replies.