Tell us what you are trying to do?
I want to use [wpv-conditional] to display some text only when TODAY() is LE (some future date).
[wpv-conditional if="( TODAY() le 'FUTURE DATE' )"]
Note that I do not have a custom date field for this so I need to have a constant or string for FUTURE DATE.
THE EXACT SITUATION:
I have a temporary limited time discount to join a membership. It will start now, but I want to stop automatically displaying the page showing the discount, and instead show "Sorry, this discount to join has ended."
I hope that is clear and understandable!
Jeff
Hi Jeff,
Welcome to Toolset support.
I will answer this ticket before the ticket is assigned to one of my colleagues.
Toolset’s [wpv-conditional] can handle date comparisons, but TODAY() only works when you compare it to a field or shortcode that outputs a proper date string — not a fixed date string by itself.
Please check if the solution like the one mentioned here can be used for your scenario:
https://toolset.com/forums/topic/conditional-logic-by-date/
If not, I will need more detailed information on how you want to do the comparison.
Thanks.