So I have this page located Here. It’s supposed to pull in a list of courses with the “class type” as “Guest Series” which is set in the blog entry itself. It’s then supposed to order them by expiration date and then sort ascending. The problem is, the switch statement is being done before it pulls out the unnecessary entries (ones that aren’t guest series), so we end up with rows the same color and not the desired zebra effect.
It works fine if I don’t use the orderby=“expiration_date” sort=“asc”. The code is below.
NOTE: I think the only reason the “Past Sessions” is alternating correctly is because there aren’t enough past classes yet to throw off the order.