WordPress.org

Forums

Categories and Subcategories (5 posts)

  1. Mrlinux
    Member
    Posted 9 years ago #

    We have made Categories and Subcategories but the problem that it shows the subcategories as Categories and not the child of the main category. Is there any Hack to make it appear as a sub category?
    Example:

    Main category
    - Sub category 1
    - Sub category 2
    - X category 1
    - X category 2

    We have installed sub category on the wp admin but shows the same
    http://www.garticles.net

    Thanks

  2. skippy
    Member
    Posted 9 years ago #

    You'll want to review the wp_list_cats() template tag. Specifically, you want to include the hierarchical=1 parameter.

  3. Mrlinux
    Member
    Posted 9 years ago #

    we edited the List_cats as we don't have wp
    or every blog has wp_list_cats

  4. Mrlinux
    Member
    Posted 9 years ago #

    <?php list_cats(1, '', 'name', 'asc', '', 1, 0, 0, 0, 0, 1, 0,'','','','',''); ?>

    Damm! :S

  5. skippy
    Member
    Posted 9 years ago #

    Every WordPress blog should have wp_list_cats(). You're welcome to use list_cats(), though, if you need.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.