WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Lets say I have the following Categories in Wordpress:

Product Category - Cat A - Cat B - Cat C

Service Type - Service A - Service B - Service C

On the Manage Posts page on the Admin side, I want to have 2 drop down filters for both Product Category, and Service Type, so I can filter by both on the backend.

How can I do this?

share|improve this question
Maybe this is not an exact duplicate (but I'll flag as such), because you're asking about Posts and the other about Custom Post Types, but the answer provided by Stephen Harris is built to filter Posts. Check his answer and adapt the taxonomy to your own. You will have to duplicate some blocks of code to make it work with 2 Custom Taxonomies. wordpress.stackexchange.com/q/43007/12615 – brasofilo May 24 '12 at 18:52
But I'm not looking to do with custom taxonomies. Im just looking to do this with the standard Category in Wordpress. I just want multiple <select> statements based off of each Parent Category. So in the above, I want a <select> for Product Category, and a <select> for Service Type – dtj May 24 '12 at 19:44
So apologies, I really misread your question (also: sorry mods, bad flagging). I'll post an answer as I've made some tests and can provide a (partial) solution. – brasofilo May 24 '12 at 20:05
up vote 0 down vote accepted

I'd say it's quite a huge task to split the default taxonomy in two dropdowns. Maybe some wizard stumbles upon your question and enlighten us...

The biggest problem I see is the split itself, because you can modify the query &cat=1 to &cat=1,25 so as to list two categories (by their id's).

What I suggest is creating a custom taxonomy for dealing with either Products or Services. And leave the other in the default categories.
And then apply the solution I linked in the comments to the question.

This way is easy to have two dropdowns and do the custom filtering you're looking for.
Just tested and it works.

Hope this helps.

share|improve this answer
Ok, yeah I had done that. Just wanted to make sure there wasn't a way to do it all as 'Categories' – dtj May 29 '12 at 23:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.