WordPress.org

Ready to get started?Download WordPress

Forums

A different question on Categories (8 posts)

  1. stopthepress
    Member
    Posted 9 years ago #

    WP 1.5. My Categories and subCategories work fine (after fixing it) except for one detail:
    If I create a category plus a couple of subcategories, they all remain hidden unless I post something (even a blank post) in the category level. Let me explain this way:

    Example 1

    Category
    subcategory1 post-1, post-2 post-n
    subcategory2 post-1, post-2, post-n

    Example 2

    Category post-1
    subcategory1 post-1, post-2 post-n
    subcategory2 post-1, post-2, post-n

    Example 1 remains hidden and example 2 shows up okay.

    In my opinion the post required in the Category level is superfluous, unless you really wish to post something at that level.

    Is that the intended behaviour, or is a bug?

  2. lawtai
    Member
    Posted 9 years ago #

    I believe it's intended behaviour as not everyone uses a main category as just a header. People typically post into the main category as well as subcategories. You could probably hard code in the header name instead of using a blank category to get what you want.

  3. Lorelle
    Member
    Posted 9 years ago #

    It is the intended behavior and you can find more information at how to change that behavior at http://codex.wordpress.org/Template_Tags/wp_list_cats

  4. lawtai
    Member
    Posted 9 years ago #

    you mean here?

    http://codex.wordpress.org/Template_Tags/wp_list_cats

    The link you gave goes to a blank page lorelle
    haha nm you just edited it

  5. Lorelle
    Member
    Posted 9 years ago #

    I was tired and talking at the same time I was writing...so much for brilliant multi-tasking..... Thanks for CMA in case I missed the fix.

  6. stopthepress
    Member
    Posted 9 years ago #

    I'll try to hack that cause I wish to have the option to post ot to leave blank if necessary.
    Thanks a lot.

  7. Lorelle
    Member
    Posted 9 years ago #

    It's not a hack, just for your information. The page we sent you to explains the usages for the tag. So it's normal behavior that is adjustable. Good luck and let us know if we can help more.

  8. stopthepress
    Member
    Posted 9 years ago #

    Yes Lorelle, sorry. I didn't see your response for I left the computer while responding to lawtai. The 'Template Tags/wp list cats' information is just what I need. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.