Filtering problems

This topic contains 6 replies, has 2 voices, and was last updated by Proovikas Proovikas 6 years, 2 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #13996
    Proovikas
    Proovikas
    Participant

    Hi,

    i have your ajax search pro plugin and it is not working like i want. My filter looks like this: https://prnt.sc/g0woh6 and backend: https://prnt.sc/g0wuea . As you see i have members list and every member has 2 categorys.

    What i want: I would like to search members by name (none of the categorys are not activated) and also filter by categorys. Like if i choose one category then it will show these members who are in this categorys.

    For example i have a member: https://prnt.sc/g0wuea and he is in department categorys as a Toitumine and in designations categorys as a Persoonid. So in my front end if i write member name then i would like to see him (all filters are deactivated). AND if i don’t know member name but i would like to filter by categorys then it will show me only this categorys members what i activated in filter.

    I sent you my site details and you can see there how it is.

    FYI i am using also this function: https://wp-dreams.com/forums/topic/filtering-and-showing-in-a-right-place/

    I really appreciate if you can help me out:)

    #14028
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you for the proper details, it made my work much easier!

    The problem was that the code was not working because of one missing line not accounting for different configuration, I have corrected that, now it should be okay.
    For future refernce, this is the changed code:

    Best,
    Ernest Marcinko

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


    #14058
    Proovikas
    Proovikas
    Participant

    Hi,

    sadly not working correctly. As you see i have 4 members and one members is in “Toitumine” catogory (only one member, nobody else): https://prnt.sc/g2u7zd
    and if i try to filter this member out then i check this category in filter: https://prnt.sc/g2u95z and sadly result showing me all members: https://prnt.sc/g2u9ok

    Correct result should be only one member “Minu kolmas”.

    #14060
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    It’s because the taxonomy group logic is set to ‘OR’ instead of the default ‘AND’, you can change that here: https://i.imgur.com/lxNpWEl.png

    The current configuration basically means, that ‘Display the results if any of team_department OR the team_designation filter matches.’
    If you change that back to the default ‘AND’, then a result has to match both filters, if any of the values are checked.

    Best,
    Ernest Marcinko

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


    #14069
    Proovikas
    Proovikas
    Participant

    Perfect, it works!
    I have one more tiny problem. Right now if i search by name: https://prnt.sc/g2xlqw then you will see i have 2 result. It looks like it is searching titles, where one of these words what i inserted must match. i would like that both words must match and if i insert only one word then it will show these people who has this in name.
    It is hard to explaine, hopefully you will understand:)

    #14070
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    I believe you are looking for the ‘AND’ keyword logic, which you can change on the General Options -> Logic & Behavior panel: https://i.imgur.com/Z7Kze6M.png

    That will do the trick for you.

    Best,
    Ernest Marcinko

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


    #14071
    Proovikas
    Proovikas
    Participant

    Perfect! Thanks a lot!

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

You must be logged in to reply to this topic.