Support » Fixing WordPress » Can you filter by more than one category?

  • Is there any way to filter posts by more than one category? Either through the Dashboard or through some sort of plug in on the public part of the site?

    I have a book blog and I would like to be able to sort for all books in a specific genre with a specific rating, for example. Or all 5 star reviews by a specific reviewer. That kind of thing.

    I know I can do a search but that will never capture everything, but since I use these categories, that would theoretically get them all. But I can’t figure out how to call up posts from more than one category at a time.

    Anyone have any ideas? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • $query = new WP_Query( 'cat=2,6,17,38' );

    Ok, don’t think I am an idiot but i have no idea what to do with that. I’m sorry if I am being dense but I really don’t even know where to start.

    When I filter by one category, I either click on the category link on the live post (thus pulling up all posts with that category). Or I filter using one of my pages that I have set up to filter that category. Or I sort using my list of posts within the dashboard. So I was hoping maybe something like that was doable for two categories at once so I can narrow my results.

    I am totally open to trying your suggestion though if you can explain to me what I would need to do.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can you filter by more than one category?’ is closed to new replies.