Support » Plugins and Hacks » Query Multiple Taxonomies » [Resolved] How to query multiple taxo's

[Resolved] How to query multiple taxo's

  • It might be a dumb question but so far I’ve managed to create taxonomy views and put several taxo-selecting widgets in its sidebar. But: how do I select items which have several different taxo’s in common, and show them? In the current solution, clicking a taxonomy just takes me to the page showing the result for that one taxonomy.

    I’d like to be able to filter results for items that meet all taxonomies/criteria. Anyone?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author scribu


    You select all the taxonomies in a single widget.

    How would I go about that? I can only select one taxonomy at a time in the widget.

    Plugin Author scribu


    Maybe you’re using the wrong widget. The QMT widget has checkboxes:


    That looks different indeed, so I tried it. The widget shows up alright, however I cannot get it to display empty taxo’s. I cannot get it to exclude certain categories either. Am I overlooking something?

    Plugin Author scribu


    Yes, empty taxonomies aren’d displayed by default (what’s the point?) and no, you can’t exclude certain categories currently.

    OK, thanks for making that clear. In my case I’ll resort to using taxonomies instead of categories for specific product types.

    I am struggling with the same problem regarding the check box issue. I think a more accurate way to describe the problem is the Empty taxonomies problem. If you have 3 states for each category(taxonomy) link (Selected, Included, Excluded), the website users will have a clearer view of what this widget is actually doing. So if the “Empty” taxonomies are dimmed out (css class or id) you would have the functionality of the check box.

    I would like to contribute and add this option, but im not sure where to start. Where exactly does the filtration of the taxonomy list occur in the plugin?

    Plugin Author scribu


    In the widget admin, there are only two states per taxonomy:

    * don’t show the taxonomy
    * show the taxonomy (if it has terms)

    I’m not really sure what you’re proposing.

    Also, I believe you’re confusing ‘taxonomy’ with ‘term’.

    what im proposing is a modification on the “list” option.

    The modifications are as follows:
    – change the output of the list to include all taxonomies (not sure im using the right term, lets say for my Video custom-post, i have the taxonomy Category, and i want to include all the category items… being entertainment, funny, news …..ext)

    – change the html output to include the class or id of “excluded”. This is for those category items that are empty. I would like to have the option to list the empty category items differently(dimmed out, or disabled). can this be done with the mustache template?

    this way, we would have the checkbox functionality. This could of course result in 404 errors, because the user can select an empty category (if the links are not disabled).

    Thanks for the help.
    Much appreciated.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] How to query multiple taxo's’ is closed to new replies.