Hi folks,
Check this out: https://radiobootcamp.org/classes/less-is-more-cutting-for-keeps/
I’ve got a looper in the psuedo-class footer that goes and collects the next three upcoming classes, sorted from closest to latest (on ACF date field). Works great.
But I don’t want classes that are in the past. So I’ve got a conditional logic on the Post —> if server date is after class date, drop from the compiler. Works great.
As you can see on the Product above, the query runs first (get 3) and then the conditional logic runs second. Is there a way to swap this? Conditional logic runs, then query.
Or maybe there’s a way to embed the conditional logic in the query itself?
(Credentials coming in secure note.)
Also, super fun building these Woo products in Layouts — really elegant. Great job, folks!