Skip Navigation

[Resolved] Filter Multiple views on the same page

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

Problem:

The issue had multiple views on the same page that were being filtered by 1 filter but it stopped working when AJAX was activated for the view.

Solution:

This stopped working because the AJAX filters will only work for the view that they are attached to. If you want these filters to target other views a full page refresh must be done.

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by envista-imagen-s.l.M 6 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#908349

I have two views filtered by a taxonomy and without ajax it works correctly. At the moment I filter using ajax only the first view is updated.

#908562

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

Filtering multiple views with an AJAX search won't work because the AJAX is local to the view that it is enabled on and the view that the filters are enabled for .

When the non-ajax search is performed then the other views can be filtered by the url parameter because of the page refresh and the views are then looking for that url parameter.

Thanks,
Shane

#908687

Thanks. Is there an alternative or do desist to use ajax?

#908976

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Alternative to using AJAX in views ?

The only other alternative is to use the full page refresh.

Thanks,
Shane

#909210

Thanks!!