• Resolved s3mw

    (@s3mw)


    I’ve Googled this, and I’ve read through the forums. I just can’t seem to find a simple answer. A lot of what i find is pretty out-dated.

    Is there a simple way to display child categories under their parent categories in the sidebar?

    I’m currently using wp_list_categories to display my category list. I was looking at get_terms thinking it might point me in the right direction. So far no luck.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • depending on what exactly you understand as ‘display child categories under their parent categories’, wp_list_categories() should actually do that, when you set the parameter ‘hierachical’ to ‘true’ (which is the default value).

    Thread Starter s3mw

    (@s3mw)

    Thanks, alchymyth. Error on my part. I thought I had it set, but didn’t. That’s why it wasn’t working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display child categories under their parent category in sidebar’ is closed to new replies.