- September 20, 2017 at 1:37 pm #14802
I am trying to create a custom search for a Supplier section on my site created using a custom post type. In the admin area of WordPress there is a menu heading “Integra Suppliers” and within that a categories section called “Supplier Categories” . It contains 8 categories at present which are “BPGI, Direct, Educational, FM, Indirect, Initiative, Retail, ValueAddedServices” and there are suppliers linked to these.
I would like to search by the relevant category so for example if I check BPGI in my search it lists all “17” BPGI Suppliers but for some reason I cant get the search to work, are you able to take a look?
Daniel GronowSeptember 20, 2017 at 2:29 pm #14803
Thank you for the proper details, I have looked at your configuration.
From what I can see the plugin is configured to return suppliers and supplier categories as well as results. The filter is defined to match all terms, but also return suppliers which are not categorized either.
If I understand correctly, you want to use the filter to show suppliers from the chosen categories only, nothing else. I suggest trying the following configuration:
– I’m not sure if you want the supplier categories as results, as those are not affected by filters and will be displayed anyways. You can turn that off by de-selecting it on the General Options -> Sources 2 panel: https://i.imgur.com/xr8mSKo.png
– I guess you don’t want to display suppliers that are not categorized, then make sure to turn off this option: https://i.imgur.com/Lf1C22K.png
– Also, if there are overlapping categories – like if a supplier is within multiple categories that are featured in the filter – then unless all of those categories are selected, it will not show up, as by default the filter logic is that all selections must match. You can change this as well: https://i.imgur.com/e4Nhg0O.png
I believe adjusting these options will most likely help you.Best,
If you like my products, don't forget to rate them on codecanyon :)
September 20, 2017 at 4:44 pm #14805
That has worked perfectly thank you very much.
Finally is there a way I can show all of the search results as opposed to displaying the load more option?.September 20, 2017 at 5:04 pm #14806
You must be logged in to reply to this topic.