First, thanks for engaging and I’m excited about 3.0.0. Feels like Christmas is coming.
Second, I put Julia’s answer straight into my Search Results Template (as html) and it works! Very Impressive. I only have some niggles with FacetWP.
Third, I know documentation is down the list of priorities, but I have found the
<If > tags to be particularly confusing.
The doc says: The basic structure is:
<If subject comparison value>
Then it lists Core conditions, some of which include an equals sign, others don’t. Are those the subject? Does the equals sign replace the comparison?
I’m not needing answers to this now, but maybe someone would like to know what’s tripping me up.
Also, whenever documentation is addressed, I hope you create opportunities for user-supplied examples. That’s the most useful documentation for me, and I’d be happy to supply examples of code that has been useful to me. (Every so often I get notified that someone was able to use something I’ve posted. Today, I got thanked for a post I made in 2009.)
Finally, FWIW I had glossed over
Switch and When because the terminology was foreign to me, but it’s really just another label for a “case” statement.