• I’m using WP 2.0.2. (I’ve used 1.5, and I’m not sure if this was an issue then too.)

    wp_list_cats(hide_empty=0) will show all categories. But If I have a parent category, Parent A and it doesn’t have posts, but its child does (child A) then neither don’t appear.

    Example with hide_empty turned off:
    Parent A (0)
    >> Child A1 (2)
    >> Child A2 (1)
    >> Child A3 (0)
    Parent B (1)
    >> Child B1 (1)

    Example with hide_empty default on:
    Parent B (1)
    >> Child B1 (1)

    What I’d Like to see:
    Parent A (0)
    >> Child A1 (2)
    >> Child A2 (1)
    Parent B (1)
    >> Child B1 (1)

    Is this possible? I don’t need to see the Number of posts btw.
    What I’m trying to do is create a master site with multiple subblogs. The General is all topics, but the Parent Categories are topic specific blogs with thier own theme.
    I don’t want to have to post to the Parent just to see the category.

    I’d also love if I’m signed in, I can see categories with private posts. To do that I’m having to change the SQL to $query under list_cats to see if a user it logged in and display categories with private posts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter arnoldjw

    (@arnoldjw)

    Anyone have any suggestions on how to show Parent Categories with Children posts?

    I’d love to know the answer to this one as well as I’m struggling with a similar issue.

    Thread Starter arnoldjw

    (@arnoldjw)

    My solution was first to put a post in all the categories I want on.

    I’ve changed it an now I just have show all categories. wp_list_cats(hide_empty=0). I just deleted the parents and children I don’t have posts for. When I start writting under those posts I’ll add the categories.

    Hope this helps you fumbly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Categories not all appearing.’ is closed to new replies.