I have a view with custom sort (post date and a numeric custom field) wich is not working, so I deactivated all the plugins and switched to default theme. The only two active plugins were Views and Types, and the view was working properly.
I activated all the plugins one by one and the custom sort stopped working when I activated Elementor Pro. This does not happen with the free Elementor, just with the Pro version.
BUT this does not happen if the view is updated using AJAX. If I choose to update the entire page when the user clicks on the submit button the custom sort does not work.
So, to recap everything:
Only Views and Types: custom sorting WORKS with page update
With Elementor Pro: custom sorting DO NOT WORK with page update but WORKS with AJAX.
I don't know how Views and Elementor Pro are related about this problem, but I wanted to let you know. I will also inform Elementor developers about this.
Thanks!
Hi, thank you for the detailed report. A similar issue has already been reported here: https://toolset.com/forums/topic/search-sorting-not-working-at-all/
Is your View split into two Elementor widgets - one for the filters and another for the results? If so, then the issue is likely the same. The workarounds are to use AJAX in the View, or to show both the filters and results in a single Elementor widget.
Please let me know if your filters and results are split like this, and I can link this ticket to our internal bug ticket.
Yes, I confirm that my filters and results are split in two different widgets.
If I show both in a single widget the sorting works, so the issue is the same.
I'll use a workaround for the moment and wait for a fix.
Thank you!
The fix for this issue has been included in the latest round of plugin releases, now available for download or automatic update.