Ready to get started?Download WordPress


Categories and Sub-categories (3 posts)

  1. maggiliz
    Posted 4 years ago #

    Categories and Sub-categories are VERY frustrating. Why doesn't WordPress have the built-in ability to show Categories and underneath show all the sub-categories in that category and be able to click on whatever sub-category you want.

    On the website all categories including sub-categories are on the same level. I need to show CATEGORIES listed underneath SUB-CATEGORIES - is shows it that way in the dashboard. Why have you made things so difficult when it should be really quite simple. It's quite insane the way it currently works!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    On the website all categories including sub-categories are on the same level.

    That's down to the theme you're using - not WordPress.

  3. Julian Ware
    Posted 4 years ago #

    I'm assuming this is a critique of their base theme? WordPress itself if not responsible for the layout of navigation. It's really just an easy way to interact with a database. How everything looks is up to you.

    This bit of code, specifically the 'child_of' argument, make category based lists fairly straight forward.

    <?php wp_list_categories(’child_of=4‘); ?>

    It also helps to look at the codex page for 'wp_list_categories'.


    And I'd also recommend getting into the WP 3.0 navigation menus if you haven't already.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.