WordPress.org

Ready to get started?Download WordPress

Forums

Filter posts by 2 categories (2 posts)

  1. jaybehr
    Member
    Posted 4 years ago #

    I use categories to filter down posts to a particular subject. I'd like to be able to then further filter down the results within a single category based on a second category set (or something equivalent). What's the best way to do this?

    For example, I'd like to be able to see just the blue roadsters by selecting one category from the tope set and a second category from the list below.

    Category Set 1:
    Roadster
    Sedan
    Truck

    Category Set 2:
    Red
    Blue
    Green

    Thanks!

  2. alieneila
    Member
    Posted 4 years ago #

    You should be able to do this with get_categories. Check out http://codex.wordpress.org/Function_Reference/get_categories

Topic Closed

This topic has been closed to new replies.

About this Topic