NO BUG: Instant search no longer working in v.2.x

My header has a Search Filter in the header bar and a query loop set up for instant search, so users can search for products from the site header. This was working prior to v.2.x.

Nothing about the header template has been touched since upgrading to v.2.x (now at 2.0.2)

The query loop is set up to show only post type = products. However, now it shows posts a multiple types (posts, products, custom post types).

I also have a search filter on my product archive page, and it also now returns non-product posts.

Is there a workaround for this bug I can employ until it gets fixed?

Site is https://oceansev.com

Hi @ainom,

can you show me your query loop setup/settings? If you like, you can also copy-paste the relevant elements here.

Thank you,
Matej

Here’s how the query loop is configured:


Hi @ainom ,

We can’t replicate the issue in the latest version.

Can you check if any plugin or snippets are causing this issue?

I inspected your site, and I can see the query_vars generated are correct and should only include “product” post type.

Maybe you have some plugins or code using another hook that amended the result?

Otherwise, please send admin credentials to help@bricksbuilder.io.

Regards,
Jenn

I confirmed the problem still occurs even if I disable other plugins.

I’ll send login credentials via email.

Hi @ainom

As per our email conversation, the root cause is one of your custom snippets inside WPCodebox.

Thanks.

Regards,
Jenn