WordPress.org

Ready to get started?Download WordPress

Forums

Categories and Sub-categories (3 posts)

  1. maggiliz
    Member
    Posted 3 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 3 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
    Member
    Posted 3 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'.

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

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

    http://codex.wordpress.org/Appearance_Menus_SubPanel

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.