WordPress.org

Ready to get started?Download WordPress

Forums

CATEGORIES>>SUBCATEGORIES (9 posts)

  1. textfield
    Member
    Posted 8 years ago #

    I would like to have several Categories on my site with Sub Cateogories appearing below each Category. Is there a simple hack for doing this?

  2. moshu
    Member
    Posted 8 years ago #

    No need for hack. It works like that out of the box. In most themes, I mean.
    What theme?

  3. textfield
    Member
    Posted 8 years ago #

    I am using Kubrick as a base theme, but will be restyling/structuring with css.

  4. chucker
    Member
    Posted 8 years ago #

    This should do the trick (it does for me):

    list_cats(FALSE, '', 'name', 'asc', '', TRUE, FALSE, TRUE, FALSE, TRUE, TRUE, FALSE, '', FALSE, '', '', '', TRUE);

  5. textfield
    Member
    Posted 8 years ago #

    Also, maybe I should clarify my usage:

    Categories:
    Residential
    Residential Subcategory

    On the final version, there will be no text "Categories", only Residential and all the projects listed below as Subcatgories (IE Project Name) and pages for that project as Posts. Make sense?

  6. moshu
    Member
    Posted 8 years ago #

    textfield,
    if it is properly styled the categories and subcats display nicely, e.g.
    http://www.transycan.net/blogtest/
    Whether you use the heading "Categories" or not - doesn't really matter :)

    Edit. However, it won't display the posts' title in this setting!

  7. textfield
    Member
    Posted 8 years ago #

    Pasted that into my sidebar, works like a charm, thanks!!! How about going another level and listing posts below the sub category?

  8. moshu
    Member
    Posted 8 years ago #

    That will not work with this template tag - and I don't even remember an easy way to do that.

  9. textfield
    Member
    Posted 8 years ago #

    Actually, realized that won't be necessary, as the user will simply click into the project (IE SUB CAT) and view the project as multiple posts with the SUB CAT. Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.