• Resolved Redda_Joppe

    (@redda_joppe)


    I’m experiencing som strange behaviour with the search funcionality.

    I have a page with this shortcode:
    [pdb_list search="true" filter="kategori1=Informationsteknologi|kategori2=Informationsteknologi"]
    where ‘kategori1’ and ‘kategori2’ are Dopdown List fields with ‘Informationsteknologi’ as one of the possible choices for both fields.

    Before I make a search, the page shows the filtered list like it should. However, when I make a search, it shows records corresponding to the filter mixed with records corresponding to the search term.

    If I turn of AJAX Search in the settings, the results of the search equals the filter set in the shortcode, no matter what I search for – in other words, the page is exactly the same after a search as before a search.

    Im not sure what the intended outcome is when you search a filtered list, but what I’d like to achieve is a search result filtered by the filter set in the shortcode as well as the search term.
    How could I accomplish this?

    https://www.ads-software.com/plugins/participants-database/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Redda_Joppe

    (@redda_joppe)

    UPDATE: I removed one of the two filter staements, and it suddenly works as I wanted it to. The issue only persist when there are multiple chained filters, so I’m guessing this is a bug.

    Will this be fixed, or is there some kind of workaround or any kind of possible solution?

    Plugin Author xnau webdesign

    (@xnau)

    When you have statements joined by an “OR” in the filter, it will add the search term as an OR also. If that is not desired, you can add an “&” to the end of the filter statements so the next search term is added as an “AND”:

    [pdb_list search="true" filter="kategori1=Informationsteknologi|kategori2=Informationsteknologi&"]

    Thread Starter Redda_Joppe

    (@redda_joppe)

    Perfect, that did the trick ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Searching a filtered list’ is closed to new replies.