Navigation überspringen

[Gelöst] conditional output, where a custom field need to equal TODAY ()

This support ticket is created vor 4 Jahren, 9 Monaten. 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.

Dieses Thema enthält 1 Antwort, hat 1 Stimme.

Zuletzt aktualisiert von Lara vor 4 Jahren, 9 Monaten.

Author
Artikel
#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!