Forums

Use wp_list_categories in folder formal (2 posts)

  1. dmathews
    Member
    Posted 9 months ago #

    Would it be possible to list the children of a category in folder format? For example, if I have a category called "Home", I would like to show in a page all the associated children categories for "Home", like:
    "Shopping"
    "Work"
    "Grown"
    These children would be displayed in folders so that when I click on any of them, they would either display the child category or the posts. Is there a plugin for this?

  2. MichaelH
    moderator
    Posted 9 months ago #

    If use the template tag, wp_list_categories(), with the child_of parameter you can do just that. When someone clicks on one of those child category links they will be presented with a list of posts in that category (a natural 'archive' ability of WordPress).

    Related:
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

Reply

You must log in to post.

About this Topic