Skip Navigation

[Resolved] AJAX results update when visitors change any filter values ​​no longer works

This thread is resolved. Here is a description of the problem and solution.

Problem:

AJAX auto-update for Toolset View search filters (update results when inputs change) was not working on an archive page. The search worked only when using a Search button (non-AJAX submit), even though the View’s Custom Search settings and AJAX pagination settings appeared correct.

Solution:

The issue was caused by the theme deregistering WordPress’ jQuery using wp_deregister_script('jquery') and loading its own jQuery directly. This removed the jquery script handle that Toolset depends on. As a result, Toolset’s frontend.js was not initialized and AJAX events did not fire when filter inputs changed.

Fix: remove the deregister logic and restore the standard WordPress approach by using wp_enqueue_script('jquery'). After that, Toolset AJAX filtering worked normally.

Relevant Documentation:

https://toolset.com/course-lesson/creating-a-custom-search/#make-the-search-results-update-when-search-inputs-change

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 3 replies, has 1 voice.

Last updated by mariN-2 1 week, 1 day ago.

Assisted by: Christopher Amirian.

Author
Posts
#2841053
スクリーンショット 2025-12-24 9.42.22.png

I'm currently developing a site, and I have the AJAX results update when visitors change any filter values ​​radio button selected in the Custom Search Settings, but it's not working at all.

However, I previously had a site where I selected "Let me choose individual settings manually" and it worked fine, so I set it the same way, but it still didn't work.

Have the Toolset View specifications changed...?

Or are my settings incorrect?

I'll send a screenshot and URL of a site where "Let me choose individual settings manually" works fine.

hidden link

#2841076

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support. Toolset hasn’t changed its specs here. What usually causes this is that the View is not actually running in AJAX mode, so “update results when an input changes” never triggers the AJAX refresh.

If you want the View to refresh automatically when filters change, you need the View to use the AJAX pagination engine too.

Steps:

- Edit the View
- Go to: Toolset → Views → (edit your View) → Settings
- Enable AJAX pagination
- In Pagination Settings, select:
- Pagination enabled with manual transition and AJAX
- Save the View.
- Enable auto-update on filter change
- Still in the same View → Custom Search Settings, select either:
- AJAX results update when visitors change any filter values, or
- Let me choose individual settings manually → then choose Update the View results every time an input changes
- Save the View.

Thanks,

#2841111
スクリーンショット 2025-12-25 0.20.29.png

Thank you for your quick reply!

> If you want the view to refresh automatically when filters change, you need the view to use the AJAX pagination engine too.

After receiving the above advice, I checked the settings and the relevant box appears to be checked.

I'm sending you a screenshot of the settings screen I checked.

Maybe I'm misunderstanding the settings screen...?

Thank you in advance.

#2841171
スクリーンショット 2025-12-25 9.43.26.png

I'm sorry.
Were the VIEW settings wrong?

What I want to do is perform a refined search on the archive page, just like on a site I created previously, but even with the same settings, AJAX won't work.

I can perform a refined search if I display the search button, but it doesn't work with AJAX.

I deleted the site and created a new one, but it didn't work.

This time I tried the following settings, but it still didn't work...💧

#2841178

We've found the cause!
Because WordPress was executing wp_deregister_script('jquery') and directly loading its own jQuery in the theme,
the "jquery" handle required by Toolset did not exist.

As a result, Toolset's frontend.js was not initialized, and AJAX did not fire when filters were changed.

After removing deregister in functions.php and reverting to wp_enqueue_script('jquery'), it worked normally.

We apologize for the inconvenience.
This issue will be considered resolved.