Forum
Calendar conditional
Hi, on the events calendar, how do specify a conditional to show something when not on the current month's calendar. I tried this:
<perch:if id="current_month" != "selected_month"> Show this </perch:if>
Hi, on the events calendar, how do specify a conditional to show something when not on the current month's calendar. I tried this:
<perch:if id="current_month" != "selected_month"> Show this </perch:if>
The syntax for Perch Conditionals is detailed here - see filter, match and value.
https://docs.grabaperch.com/docs/templates/conditionals/if/
Thanks Rachel the guide really helped. :-)
After trial and error I realised it wasn't working because the value wasn't wrapped in {braces}.