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?

Hey @franticape,

This is tricky for us too so I believe that it would be best to create custom shortcodes instead of using Dynamic Content. This way, you have better control over the format. With that, you would need to develop the shortcodes or find a developer to create custom shortcodes for you.

ok, that’s not a big deal, I can do that myself :), I just wanted to see if there was a native way of doing this.

another question, can I add shortcodes to the conditions section? i mean If not, then what input would it accept instead?

Hey @franticape,

The element that accepts shortcodes is the Text element.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.