Forums › Forums › Search & Filter Pro › Search field relationships not working properly
Tagged: Field relationships, search results
- This topic has 2 replies, 2 voices, and was last updated 6 years, 9 months ago by Anonymous.
-
Anonymous(Private) February 16, 2018 at 2:43 pm #160263
I have a search form here, but when I click submit, it’s only pulling results for the last taxonomy category in the list rather than combining all search terms. It was working and I did not change anything. I’m not sure what happened. The “field relationships” is set to AND not OR, so I’m not sure what happened.
http://letsgetboard.com/advanced-search/
For example – if I select, Ages 3-5, 2-4 players, and Award winner, it only shows me results for “Award Winner” see the URL below even after I’ve selected several search terms
http://letsgetboard.com/?sfid=657&_sft_product_tag=award-winnerTrevor(Private) February 16, 2018 at 2:48 pm #160266I can see the problem. You have used product-tag (a custom taxonomy) many times in the form.
You can use a particular Taxonomy (or Category/Tags, each Taxonomy and each Custom Field) only once in the form. You would need to make additional custom taxonomies. 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).
You will need to make two new taxonomies for Countries and Resources. Then you will need to move the terms to the appropriate taxonomies, and then you will need to switch the form elements over to use these.
You would need two plugins installed:
Custom Post Type UI, or some other way to make the taxonomies (do you already have such?)
Taxonomy Switcher (only to switch the terms, then you can remove this plugin). -
AuthorPosts