Forums › Forums › Search & Filter Pro › Filtering sub-categories
Tagged: custom taxonomies
- This topic has 3 replies, 2 voices, and was last updated 8 years ago by Trevor.
-
Anonymous(Private) November 5, 2016 at 4:27 pm #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!
VictoireTrevor(Private) November 5, 2016 at 4:55 pm #68864Hi 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.
-
AuthorPosts