Comparing custom datetime field
-
I’m trying to display some text, depending on whether a datetime field is in the past.
[pass field=wpcf-date in=timestamp] [if pass='{FIELD}' value=past-time] CONCERT ENDED [else] Coming soon. Stored={FIELD} Now=[today format=U] [/if] [/pass]The IF condition never seems to evaluate as true, and always displays “Coming soon”. I’ve tried numerous options, but am missing something obvious. Can anyone help.
The wpcf-date field is from Toolset types, and works most other places I have used it. Typical output:
Coming soon. Stored=1506535200 Now=1537383865Coming soon. Stored=1537988400 Now=1537384236
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Comparing custom datetime field’ is closed to new replies.