Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Set taxonomie filter WordPress


Okay i'm having a bit of a catogorisation/taxonomy/filtering problem here and am at loss on how to solve this. I hope someone could help me on the way a bit.

Say I've got a blog about food, with a few main subjects;

thai food
indian food
greek food
mexican food
french food
spanish food
fast food

A blogpost is always tied to one or multiple of these subjects (a blogpost about a fajita is just filed under 'mexican food', a blogpost on 'burrito' under both 'mexican food' and 'fast food').

Then there are different categories like


Blogposts are also always tied to one or multiple of these categories. <strong>These categories are available through the menu.</strong>

What I want to do is, offer the visitor a possibility to filter all the content on a specific subject. If one would chose to put the filter on 'thai food', all the articles returned should be about thai food. If one would chose the category reviews from the menu while the filter 'thai food' has been selected, it should only list articles about thai food within the category reviews.

If the filter is set to off (or all) and one would navigate to the category 'reviews', articles in the category review on all different subjects should be retreived.

To make it a bit more difficult, the filters should also be accessable through an url. Say I'd go to it should retrieve all te content about thai food. If i'd chose to navigate through the menu from there on and select reviews, it should only retrieve articles about thai food within the category reviews (much like setting the filter on normally)

So there it is! Now I realize I might have explained this in a difficult way, but I'm a loss on how to achieve this here.

The filter should exist out of a custom taxonomie combined with a category.

edit: okay to make things easier, I think I have a better idea of what should be happening here: I should detect wether the user has a filter selected (which are custom taxonomies right now) and return posts accordingly. (so something like: if thai food is selected and user clicks on category 'reviews', return a query with custom taxonomie thai food in category reviews) My main question in this case is, how do you detect if there is a taxonomie selected, and which? Thanks!

edit: As I haven't gotten an answer yet, just offers through private messages, I hereby increased the price with another $25,-, I hope that helps! I really need this fixed, and I'd also like to understand how!

Actually, if you view you can see the 'query multiple taxonomy' plugin at the right hand site. It does exactly what I want, only when it's set, it should still apply when clicking a tag or a category as well.

Edit #2: This is the reply I got from the author fo the custom taxonomy plugin:

No, it's not possible through QMT and I'm not sure it's a good idea either. It might be confusing to the user.

Either way, you will likely need some custom code for this.

This page might help:
Maybe that'll help. Cheers

Answers (4)


Jurre Hanema answers:

I've been working on a modified QMT-plugin yesterday. The basic functionality is working (ie. it remembers its settings now), but it runs into trouble when you select a filter combination which returns no posts.

Hopefully I am able to come up with a final solution tomorrow.

nedra comments:

So it works in combination with the nromal nav-menu? Sounds very much like what I need! Let me know how it goes!

Jurre Hanema comments:

Attached is my modified version of the plugin. Just add the widget and give it a go. If I'm not mistaken, it should do about what you want.