Tell us what you are trying to do?
We have four searches for financial prodiucts (loans) on our website. Development, Bridge, Refurbishment and Commercial Mortgages. All the first three show results, the fourth never does. Using Toolset View with loop etc. (also editing the blocks causes a critical site error!)
Is there any documentation that you are following?
Same as previous search setups, but not showing data.
Is there a similar example that we can see?
Yes I can provide a login so you can see what is workjing and what is not.
What is the link to your site?
hidden link
{access details removed}
Example of working:
hidden link
Example of not working:
hidden link
hidden link
(just click SEARCH which should always return all results without any filters)
NOTE: the results show in Elementor??! when editing.
hidden link
{access details removed}
Hi,
Thank you for contacting us and I'd be happy to assist.
Have you checked the server error logs for any detailed errors or warnings?
If not, I'll recommend, temporarily enabling WordPress debugging and then checking the error logs for any detailed errors/warnings.
( ref: https://wordpress.org/documentation/article/debugging-in-wordpress/ )
To troubleshoot this further, I'll also suggest the following steps:
1. Please ensure 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 add the disabled items, one by one, to narrow down to a possible conflicting one.
3. If the issue persists, I'll need your permission to download a clone/snapshot of the website to investigate this on a different server.
Important: For future reference, always use the dedicated fields for sharing the access details. Sharing through the message body makes it publically available.
regards,
Waqar
Hi I couldn't see anything in the logs,
feel free to clone and try on your server!
Thank you
Tom
Hi Tom,
Thank you for the permission.
During troubleshooting on your website's clone, I found this custom code snippet named 'No search results at first (alt)', which is causing the 'Mortgages' page to show no results.
( screenshot: hidden link )
This code snippet tells the selected views ( IDs: 797, 799, 4666 ), to show no results if the URL doesn't include the search filter URL parameter 'wpv-wpcf-finance-loan-type' for the 'Loan Type' field or the URL parameter 'wpv_filter_submit' for the submit button.
But this view 'View Mortgage Products' that is used on this 'Mortgages' page, doesn't have this search filter for the 'Loan Type', which is why its results are never shown.
If you'll remove this view's ID '4666' from this code snippet, it will start showing the results too.
regards,
Waqar
Hi
thanks for looking at this
the problem now is though the results display as soon as you browse to the page, not after they have searched?
Thanks
tom
I've noticed that the snippet 'No search results at first (alt)' now includes an additional condition for the view 'View Mortgage Products'. The results for the view are only shown once the search button has been used.
Looks like you've managed to make it work after writing to us.
Let me know if you have any follow-up questions and for new questions or concerns, you're welcome to start a new ticket.