Support » Fixing WordPress » It says there are no categories but there are

Viewing 6 replies - 1 through 6 (of 6 total)
  • Add some posts ?

    they have to have posts in categories for them to show up. and if you have sub categories but the parent ones dont have posts then odd things happen.

    There are posts!!!
    It says there are no categories, but there are. I posted in Work, than the category work should show up.
    I do use subcategories? Why doesn’t that work?

    I deleted the parent category, it works now.

    TechGnome

    (@techgnome)

    Moderator

    This is something I consider to be a bug, others a “feature”…. if you post into a sub category, and there are still no posts in the parent category, neither shows. Two ways around this:
    1) Put a post in the parent category.
    2) Change the parameters to list_cats(), setting hide_empty = False and children = True (default is True and False respectively).
    3) Or remove the parent category — OK, so there’s three things to do about it — but this is a bit extreme.
    TG

    id say it was a bug too.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘It says there are no categories but there are’ is closed to new replies.