Yikes. I should have known that this was going to be more complicated than expected. The system you set up to make this work originally had my head spinning. I thought we'd be able to just set up a back-end date range that would limit the results to only include rides within that date range.
I had not known what was in that "test" snippet, but I always left it alone assuming it did something we needed. At least I now know that it's how you created the logic necessary for Ride Leaders AND Ride Sweeps to be included in the counts for each ride. I have now changed the description of that snippet to say "Snippet for Ride Leader Ride Count views to use OR operator for Ride Leader and Ride Sweep fields to both be included in Ride count"
So help me understand the problem better here first. Is this accurate:
1) You're currently applying the OR operator to the child view which is what allows it to include both Ride Leaders *and* Ride Sweeps in the count.
2) We now need to add the date field to the query but that requires the AND operator so the only dates used will be ones that are after the start date AND before the end date specified.
3) You can't use the OR operator on one field and the AND operator on another field without an additional custom script.
4) Going the custom script route will require a complete redesign of the system that is currently working without the date filter. If so, my head is back to spinning again.
Is this accurate?
I'd rather not have to redesign the whole system because I don't have the coding skill to do that and I wouldn't want to impose on your generosity for that unless you think it is something that can be done quickly and easily and you're willing to do it for us.
Question: Can we achieve the same goal through conditionals in the output rather than with a query filter?
Giving what I'm thinking your answer will be here: I'm thinking we could limit the display of the ride titles and dates with a conditional output display, but that conditional would not work on the [wpv-found-count] display, which is what is giving us the number needed for each ride leader and is the whole point of this system. Is that correct? I'm thinking [wpv-found-count] display operates off the Query Filter. If there is a way for a conditional date range to be imposed on the [wpv-found-count] display as well, then could we go that route?
I'm seeing how you changed how the date range is defined in the query filter to use "Start Date and Time is a number between 1672513200, 1704049199". That's what I thought would be all I needed with this ticket. But I'm seeing what you're saying that the output is still including all rides because of the AND-OR situation.
Do I understand it correctly that all the 2024 rides are still displaying because they meet the criteria of starting after 1672513200 *OR* ending before 1704048188, but they would not meet the criteria of starting after 1672513200 *AND* ending before 1704048188? Is that correct?
So if that's what you're saying, do I understand it correctly that if we eliminate Ride Sweeps from the count, we will no longer need that custom snippet forcing the OR operator on this view and then the date range would work using the AND operator? If so, I can pose this to our director and tell her "You can either have a working date range filter OR you can have Ride Sweeps included in the count, but not both without a full design of how this system is set up." Does that sound right?