Forums › Forums › Search & Filter Pro › Multiple levels of Filters
- This topic has 5 replies, 2 voices, and was last updated 6 years, 1 month ago by Anonymous.
-
Anonymous(Private) September 10, 2018 at 12:10 pm #187862
Hello,
I just bought your plugin based on the demo you presented.
I would like to search the items on my website based on categories. I have parent categories (artists / year / Artworks) and sub categories (Artist 1, Artist 2, Year 1, Year 2…) and I would like to choose multiple artists, then filter these results with the years, then maybe by the kind of work they produced. So that’s basically what you’ve done in the demo : select multiple categories of movies, then filter the results by date and so on.
My problem is that I can only show posts that match all the fields (ex : artist 1, artist 2, year 1). But I would like to display posts with a relation or, THEN ONLY filter the results with a relation AND (ex : artist 1 year 1 and also artist 2 year 1)…
That’s what you presented in the demo, and that’s what I would like to render on my website.
Could you give me advices ?
Thanks a lot !
Have a nice day.Trevor(Private) September 10, 2018 at 12:48 pm #187867You need to separate out groups, branches or parent/child tags into separate custom taxonomies. In general, you can use a particular Taxonomy, such as Product Category, (or Category/Tags, each Taxonomy and each Custom Field) only once in the form. This post tries to explain this a bit better (you can use a plugin to switch category terms from category to any new taxonomy that you make, so it is not so hard to do). It is a really awful preachy lecture I wrote:
https://support.searchandfilter.com/forums/topic/multiple-categories-combination/#post-55166
Sorry about the tone, but the message is right and it links to good plugins (except taxonomy switcher I think).
Anonymous(Private) September 10, 2018 at 1:28 pm #187875Hello, Thanks for your quick answer.
Well I think I don’t get what you mean, because I’m not using the parent category, it’s just à way to display things but I can remove it easily so every category would be at the same level…
‘Artists’ is a parent category. ‘Artist 1’ and ‘Artist 2’ are two sub-categories, so are your ‘Comedy’ and ‘Horror’.
‘Year’ is a parent category. ‘2012’ and ‘2013’ are sub-categories.So first, I would like to display the infos of these two artists category once selected.
Then, if the user click on ‘2012’, I would like to filter the result displayed with this new category : the infos of these two artists only in 2012.So : first, a AND condition, which allows to select multiple sub-categories
Then, a OR condition if a sub-category from a different parent is chosen.So maybe it is what you meant by creating custom taxonomies ?
I’m sorry, I’m mostly a designer still learning code, furthermore non-native English speaker :).Anonymous(Private) September 11, 2018 at 10:53 am #187975Hi,
I created the custom taxonomies and enabled post count to see if everything was ok. So in the filters, there is a count of posts, but if I select the filter, I have the message ‘No result found’.
Have you ever seen this problem ?
Thanks in advance,Claire
-
AuthorPosts