Forums › Forums › Search & Filter Pro › Can’t search by multiple categories
Tagged: Field relationships
- This topic has 7 replies, 2 voices, and was last updated 4 years, 5 months ago by Trevor.
-
Anonymous(Private) July 1, 2020 at 1:26 pm #250887
Hi,
I have some problems with the filter. I am trying to filter by several categories. But I can only choose one. If I try to choose multiple, then it resets:
I should be able to search where ALL Field relationships are met.
Hope you have a solution 🙂
Regards,
KennethAnonymous(Private) July 2, 2020 at 7:43 am #251050Hi Trevor,
Thanks for the reply. I almost understand the solution. But how would the setup be like in search plugin?
Here is my category structur:
Fruit types->Apple, banana, peach etc.
Also.. how would I manage post after this? Still control them by categories?
Trevor(Private) July 6, 2020 at 5:30 pm #251595I see the structure. You would need 5 new custom taxonomies:
Yogastil
Terms: 21,19,22,18,20
Kropsdele
Terms: 47,42,48,44,43,49,50,45,41,46,51,29,52
Niveau
Terms: 24,25,26
Tema
Terms: 53,58,54,55,56,12,59,63,60,57,62,13,64
Varighed
Terms: 33,34,35,36,37,38
I think those numbers are right.
So, the steps would be:
#1 Create these five new custom taxonomies using CPT UI and assign each to Posts. Make sure each is set to be Hierarchical in the CPT UI settings.
#2 Edit each category to set the Parent to be No Parent (ingen), e.g.
https://www.screencast.com/t/3bJDpPPRfP
#3 Use Taxonomy switcher to switch the terms (use the lists above).
#4 Replace each category field in the form with a Taxonomy form (transfer the settings across manually), selecting the new taxonomies as appropriate.
#5 Rebuild the form cache.
-
AuthorPosts