Forums

Looking for a little category help... (3 posts)

  1. PeterMacKinnon
    Member
    Posted 3 years ago #

    I am working on a site that will use categories quite extensively. I am actually dealing with main categories that can have multiple sub categories. Posts will be added to specific sub-categories for display. I am going to have a page that will display a list of all of the main categories. I want the user to click the link and then see the list of sub-categories. Right now when I click the link it goes right to the posts within the sub-category...

    This is how I display the main category list (this is on a custom template)

    <?php wp_list_categories('title_li=&sort_column=name&depth=1'); ?>

    How do I edit this so that it goes to a page displaying the sub-categories for the selected category?

    Thanks!! and please let me know if more info is required (I can't post a link because the site is not live)

  2. PeterMacKinnon
    Member
    Posted 3 years ago #

    -

  3. PeterMacKinnon
    Member
    Posted 3 years ago #

    Here is an example of the setup for clarity (I hope)

    - Dan Brown <- Main Category
    - Angels and Demons <- Sub Category
    - Angels and Demons Review <- Post in Angels and Demons category

    So right now the page will list Dan Brown

    When I click Dan Brown I want to see another page that lists the books...

    Then I click the name of the book to see the review...

    Right now Clicking Dan Brown shows the review :-(

Topic Closed

This topic has been closed to new replies.

About this Topic