Skip Navigation

[Resolved] conditional output, where a custom field need to equal TODAY ()

This support ticket is created 4 years, 1 month 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.

This topic contains 1 reply, has 1 voice.

Last updated by Lara 4 years, 1 month ago.

Author
Posts
#1552639

Tell us what you are trying to do?

I try two display three types of results. Results where a custom field (date) equals today, results where the same custom field (date) is in the past (compared to today) and results where the same custom field (date) is in the future (compared to today)
I used ....
[wpv-conditional if="( $(wpcf-pferd-tagebuch-und-ferienplanung-datum) eq 'TODAY()' )"] My content[/wpv-conditional]

Is there any documentation that you are following?
https://toolset.com/documentation/user-guides/views/conditional-html-output-in-views/checking-types-fields-and-custom-fields/#checking-if-a-date-is-today

Is there a similar example that we can see?
In the documentation

#1552863

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.