Skip Navigation

[Resolved] conditional date not working

This support ticket is created 4 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 1 reply, has 1 voice.

Last updated by Ido Angel 4 years, 4 months ago.

Author
Posts
#1406675

hey,
I have this conditional to display a view if the date set in the custom field is greater than today, and if the date has passed - hide the elements:

[wpv-conditional if="( $(wpcf-final-date) gt ('TODAY()') )"]
sale still on
[/wpv-conditional]
[wpv-conditional if="( $(wpcf-final-date) lte ('TODAY()') )"]
sale closed
[/wpv-conditional]

But it isn't working. Is there something I'm doing wrong?
thanks!

#1406697

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.