Tell us what you are trying to do?
I am trying to display text based on post date. For example:
IF post date is less than or equal to January 26, 2019 SHOW "abc"
IF post date is greater than January 26, 2019 SHOW "xyz"
Hello. Thank you for contacting the Toolset support.
Well - you can use views shortcode [wpv-condtional] to check the post date field conditionally.
For example - to chceck the post date against today's date:
[wpv-conditional if="( '[wpv-post-date format="U"]' gt 'TODAY()' )"]
post date is greater than today's date
[/wpv-conditional]
[wpv-conditional if="( '[wpv-post-date format="U"]' lt 'TODAY()' )" ]
post date is less than today's date
[/wpv-conditional]
Thank you. This is what I was looking to do, but I didn't want to reference "today". I wanted a specific date in time. I found the examples that referenced "today", but I wasn't able to find an example of how to insert a certain date?
For example:
IF post date is less than or equal to January 26, 2019 SHOW "abc"
IF post date is greater than January 26, 2019 SHOW "xyz"