Skip Navigation

[Resolved] Search Results on second AJAX page are REVERSED!

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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Waqar 1 year ago.

Assisted by: Waqar.

Author
Posts
#2668099

a.R

Hi 🙂

On hidden link, results should be sorted by event date, from today into the past.
The first results will be sorted right, but AJAX will then load the OLDEST results first!
What is going on there?

#2668333

Hi,

Thank you for contacting us and I'd be happy to assist.

Is the website using any third-party plugin to set/manage post/taxonomy orders? Plugins like these can also affect the query used by the Toolset views.

To troubleshoot this, I'll suggest the following steps:

1. Please make sure that WordPress, active theme, and plugins are all updated to the latest versions.

2. It would be interesting to test this with all non-Toolset plugins disabled and a default theme like Twenty Twenty-One.

If it's fixed, you can start adding the disabled items, one by one, to narrow down to a possible conflicting one.

3. In case the issue still persists, I'll need to see how this view and the event dates are set up in the admin area. You can share temporary admin login details, in reply to this message.

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2669531

The access details worked thank you.

I couldn't find anything out of place in the settings of the view '_Vergangene Veranstaltungen'.

The website is quite large with a number of third-party plugins. Do I have your permission to download its clone/snapshot? This will help in troubleshooting this on a different server, with minimal setup.

#2669709

a.R

Hi Waqar, just do it.
Would you like to use duplicator?

#2670629

Thank you for the permission.

Just wanted to let you know that I've downloaded the website's duplicator package and currently performing some tests on this.

Will share the findings, as soon as this testing completes. Thank you for your patience.

#2671067

Thank you for waiting, while I completed the testing on your website's clone.

During troubleshooting, I noticed that the issue is specific to this view '_Vergangene Veranstaltungen' ( ID: 100138 ).

If a new view is created with the same ordering and AJAX infinite scrolling settings, it works, as expected.

Additionally, the issue with ordering is also fixed for this view, if the 'Search and Pagination' content is removed/reset. In this section, there are a lot of filters, HTML, and custom code.

I'll recommend creating a new view, with the same settings and loop editor content, but not carrying over the code in the 'Search and Pagination' content. This will allow you to include the necessary search field filters one by one, narrowing down to the one that is causing the AJAX ordering to change.