WordPress.org

Ready to get started?Download WordPress

Forums

Hiding child categories (5 posts)

  1. brycefinney
    Member
    Posted 7 years ago #

    Is it possible to hide child categories until the parent category is opened? For example, I have a site with my music and I have a general category called Songs and then several sub-categories based on what period of time a certain song was written during. I'd like to only have the Songs category show up on the homepage, and the others show when someone navigates to Songs.

  2. Samuel B
    moderator
    Posted 7 years ago #

    This should help you - it's a short read:
    http://codex.wordpress.org/Template_Tags/list_cats

  3. brycefinney
    Member
    Posted 7 years ago #

    I'm sorry if this is dense but...where are these PHP settings stored? The code itself makes sense but I can't figure out where it is to edit it.

  4. brycefinney
    Member
    Posted 7 years ago #

    Okay, scratch the last question. I found that setting. My question now is, I see how to hide or display the child category, but can anyone tell me if there's a way built in to hide the child category on the homepage but display the child category when you go to the parent page?

  5. Samuel B
    moderator
    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic