WordPress.org

Ready to get started?Download WordPress

Forums

Mixing categories in pages (1 post)

  1. Bonnie_nee
    Member
    Posted 2 years ago #

    Hi.

    I really don't know how to be clear with that, so I'll try describing the details.

    I'll always have categories with undefined number of subcategories:

    cat-A
    - sub-A(all)
    - sub-A1
    - sub-A2
    - sub-A3
    cat-B
    - sub-B(all)
    - sub-B1
    - sub-B2
    - sub-B3

    The first category is my main menu, but the cat-B is not subordinated to the cat-A. Actually, I wanna to them work together.

    The pages will always displays posts from both categories
    (eg. sub-A1 AND sub-B3; sub-A(all) and sub-B(all) for default).

    But I don't want to do it by naming a specific category in query_posts.

    There is a smart way to do this?

    -----
    (a better example)
    all | flowers | cars | toys
    all | red | blue | green

    By default it will show all objects/things and colors. If I select flowers and red, that will show only posts with both categories.

Topic Closed

This topic has been closed to new replies.

About this Topic