Skip Navigation

[Resolved] Custom search results no longer displaying

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

Problem: I have a custom search View that is set up with pagination and AJAX updates. The first page of results displays correctly, but when you navigate to the second page the results never appear.

Solution: Check the DOM and see if the results are just hidden with CSS.

This support ticket is created 6 years, 5 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by mattheww-11 6 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#1096341
search and pagination.jpg
loop editor.jpg

Hi,

The results from my search are no longer displaying. When I first load my custom search page, all results appear. Then, when I change a selection in one of the dropdown filters, my page changes with Ajax and returns just a blank space. Different pagination results appear for different searches, so I know that it is filtering results, I just can't see them. I'm not sure where the problem is in my code. Screenshot attached. Thanks 🙂

#1096375
Screen Shot 2018-08-30 at 3.49.30 PM.png

The results are actually there, they are just hidden by CSS. Here's a screenshot showing that. So the question is why that visibility hidden style is applied. It could be added with custom code, or it could be a conflict with a theme or plugin. Let's try some troubleshooting steps:
- Update to the latest version of Toolset plugins for best results.
- Check the pagination settings for this View and test with a different transition effect.
- Temporarily activate the parent Divi theme and test again. If the problem is resolved, we know there is something going on in the child theme. If not resolved, continue.
- Temporarily activate the default 2017 theme and deactivate all plugins except Types and Views. Your site design will change quite a bit, but you should be able to see the View and adjust the search parameters to test updates. If resolved, then reactivate your parent theme, child theme, and other plugins one by one until the problem returns. If not resolved, then I will need to take a closer look.

Let me know what you find out from these tests.

#1096671

It was a pagination problem and I seem to have fixed it. Thanks for your help.