Filtered Search

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14802
    danielgronow
    danielgronow
    Participant

    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?

    Kind Regards

    Daniel Gronow

    #14803
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Daniel,

    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,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14805
    danielgronow
    danielgronow
    Participant

    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?.

    #14806
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You are very welcome. Sure, by simply increasing the post type limit to a much higher number, from the default 10: https://i.imgur.com/qjmmNPC.png

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.