Skip Navigation

[Resolved] Views search filters not working as expected

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 3 replies, has 2 voices.

Last updated by Waqar 1 year, 2 months ago.

Assisted by: Waqar.

Author
Posts
#2640361

I'm using legacy views to search/filter my cpt Realtors, but I must have something set incorrectly as certain filters are not working as expected. First Name, Last Name, and City seem to work as expected, but Team Name(single line custom field) doesn't work at all(enter Simpsons and you get no results):

hidden link

This is how I have my Query Filters setup:
hidden link

And I have it set to "AJAX results update when visitors click on the search button" but as you can see if you select a State the Spinner gets triggered.

Also the Pagination seems to have issues as well. When you go to the second page there should be a "Previous" button but that does not appear.

Thanks,

Tim

#2640535

Hi Tim,

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

I tried to view the page that you've shared, but it is showing a '404 - not found' message.

To troubleshoot these issues, I'll need to see how this view is set up in the admin area. Can you please share the temporary admin login details and the page where this view is in use?

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

regards,
Waqar

#2640873

I think I figured out why Team Name filter was not working. I changed it from equal to" to "like", that seems to hit partial matches which is what I expected. But the spinner is still being triggered when you change the State. And the pagination issue is still happening.

Also I suppose there's no way to make the spinner graphic white is there?

#2640957

Thank you for sharing this update.

> And I have it set to "AJAX results update when visitors click on the search button" but as you can see if you select a State the Spinner gets triggered.

- By default, even with AJAX enabled, the search form options are updated when any input field's value is changed. This is to ensure that only the options that can produce results are available.

But, you can change that behavior by selecting the option 'Always show all values for inputs', in the advanced custom search settings.
( screenshot: hidden link )

> Also the Pagination seems to have issues as well. When you go to the second page there should be a "Previous" button but that does not appear.

- The pagination's output is not updating with the AJAX, because its relevant code is placed outside the view's markup, in the 'Output Editor'.

You can move it just before the '[wpv-layout-end]' tag in the 'Loop Editor' and this will be fixed.
( screenshot: hidden link )

> Also I suppose there's no way to make the spinner graphic white is there?

- You'll find the shortcode 'wpv-filter-spinner' in the view's 'Search and Pagination' section that controls the spinner. You can replace the spinner graphic link used in the 'spinner' attribute, to use your own spinner graphic.
( screenshot: hidden link )

#2640965

Thanks!