Forums Forums Search & Filter Pro Filtering sub-categories

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #68861

    Hello!
    I purchased the pro version yesterday, and am very glad I did. Congrats on your amazing creation!
    The issue I’m having is, I think, exactly the same as the one listed in the topic called ‘Hiring somebody to get stuff done’. But the answers are listed as private there, so I’m trying my luck here.

    As you’ll see on my website intheloup.la, each review belongs sub-categories of four different categories: where/when/what/how much. So the sub-categories are numerous: dinner/lunch/breakfast etc for the ‘when’, italian/french/japanese for the ‘what’, and so on.

    I’ve created a filter page: http://www.intheloup.la/en/filter/
    On there, I’m trying to have four boxes where you can filter each where/when/what/when. In a nutshell, I want people to be able to ask questions like : lunch/italian/hollywood/cheap our dinner/venice/expensive. If they only want to filter by using 3 boxes, the other one should remain as “all categories” (i.e. show all the expensive restaurants for dinner in Venice, whether they’re italian or anything else).

    The two issues I am having are:
    A- I can’t get the search boxes to show only the sub-categories under one category. Indeed, if you see the options offered for the ‘Where’ box, you’ll see that you ALSO get all the sub categories for what, when, etc.
    B- the results are no behaving as expected. I’d like the result to be “lunch_AND_italian_AND_hollywood_AND_cheap”, not “OR”, or whatever is happening right now.

    Thank you so much for your help!
    Victoire

    Trevor
    #68864

    Hi Victoire. It is now the weekend (outside support hours, and yet here I am :-O ).

    You have more than one form control based on the same thing; the category. This is not permitted as it causes conflicts. You need to create custom taxonomies (use a free plugin called CPT UI) and split out the parent terms you need as separate taxonomies.

    On the General settings tab, enable both Auto Count checkboxes, and for each taxonomy field check (ON) hide empty values.

    Anonymous
    #68880

    Understood, thank you! I’m currently using the CPT UI plugin to add taxonomies to each and every post. Do you know if there’s a way to ‘convert’ categories into taxonomies? It would be incredibly helpful… Have a nice weekend!

    Trevor
    #68882

    Would this do as you want?

    Taxonomy Switcher

Viewing 4 posts - 1 through 4 (of 4 total)