Guidelines and debugging of conditions

Hello,

I constantly have issues using conditions with dates and the most difficult part is that I have to basically just guess what’s going on. I have no way of knowing which values are being compared so I can properly debug and solve the problem.

This happens often with the dates, because I suspect that the dates are not always compared using the normal timestamp value but the actual formatted date, maybe?

If i compare something like: “Today” with {{dc:date:generic date="@{{dc:post:meta key="wpcf-fecha-preventa1"}}" format="m.d.y"}} it may work on some pages and not on others.

then, if i just change the FORMAT, then it will stop working correctly or give super random results.

How is it that I can debug or test the conditions? I can easily paste one field on a text field but I can’t find the “today” tag to add to a text field and see its content so I’m working blindly here.

Can you help me out, please?