well it won't let me insert the image. but yes my filters are set. Last Name like [get param=last-name] OR Pilot Escort Certification Number is equal to [get param=pilot_escort_certification_number} AND Expiration date greater than NOW
The screenshot did not come through (displays as a broken link). Also, this is not sorting, this is filtering. So my guess is that in your filtering you're filtering value should be something like the following, but isn't. Last Name is equal to [get param="last_name"]
There it is. It's last_name, rather than last-name. Also, put it in quotes to make sure.
Please click the Fliter Entries link in the view, take a screenshot of it and use something like https://paste.pics/ to share the picture.
This is less than fun trying to debug like this, but I can keep trying. For giggles, remove all filters except for the last name and put the double quotes around last_name and see if that works.
So it is the expiration date that is messing it up.
I don't know it is working fine with both Last Name and Pilot Escort Certification Number as you said in double quotes, but no matter what I do with NOW [] '' "" not enclosing deals at all it just stops working.
Thank you so much for you assistance. If you get an idea that might let me filter out expired certs drop it in here. I am going to keep trying various combos. Maybe try with a hard date rather than NOW
As much as I hate to yell BUG from the mountaintops, I've personally had no luck with NOW in the filters. One thing to try to prove that NOW is the problem is to use "2022-10-27" instead of NOW and see if that works. Also, is it possible your date column is a string rather than an actual date? Finally, I wholeheartedly recommend using Datatables (or WPDatatables), which not only allows to display nice, sortable tables, it comes with its own filters that don't require a page refresh.
I will futz with it some more, can't remember if I put the " " around the date but I did try to put a date and got the no filter result.
I wonder if TODAY would work or is that not even a thing?
I will look at WPDatatables. Thanks again so much for your time today.
Please login or Register to submit your answer
You've set the "Sort Entries" value on the view?