WIP: Live Search Query: Reset filter value but filter options count not reset

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

I have a query that connects to an ACF. I use ‘Live Search’ on the query. I’ve added filters like checkboxes and radio buttons to my web page. When I type a name (say, ‘Peter’) into the ‘Filter - Search’ field that has no matching results, the filters correctly show (0) in parentheses for the count of available options, since no posts in my ACF match that name.

However, when I delete the name ‘Peter’ and the ‘Filter - Search’ is blank, the filters still show (0), even though when I reload the page, the filters by default show (3) options to filter by.

In other words, clearing the live search doesn’t reset the available filter option counts (in parentheses) for the live search functionality.

Hi @debtadvice,

if you are using other filters for that query, I think you need “Filter - Search” element only, and not enabling “Live Query” option on that query loop.

Can you try that and let me know.
Matej

So I can only have Live Query only for 1 filter (“Filter - Search”)?

If I disable Live Query it will show me all the results at default

@Matej any update on this issue?

Hi @debtadvice,

if I understand correctly, you just want users to be able to search for something, and then filter more with other filters.
You don’t need to enable “Live Query” for this (Query Sort, Filter & Live Search – Bricks Academy), Live Query is when you want to create something like “live search”, that you see in many websites top header.

If you need for filtering, just connect Filter - Search to the query, and that’s it.

But, I might not understand the issue correctly, especially now that you wrote:

…isn’t that what you want?

Let me know please. Maybe record a video of desired behaviour.

Matej

@Matej I don’t want my webpage to show results automatically. Only after applying a certain filter.

Hi @debtadvice,

now, I understand what you mean. This is not possible currently, as the count in the filters is not updated, once you remove all the text - when using Live search.

We will create an improvement task for this.

Best regards,
Matej