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
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
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?
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 )