Custom date field can not be used for date comparison
-
Hello
Since version 5.8.1.2, I can no longer use my custom date field (#_ATT{deadline}) in a shortcode as a date.
I use a function to compare the current date with the end date.
As long as the deadline> = current date, custom content should be output.Here is an example of formatting the single event page
[datum_vb from = ’01 .01.2017′ to =’#_ATT{deadline}’] CUSTOM_CONTENT [/ datum_vb]
As a text output, the value from variable $to (source: #_ATT{deadline} = 18/05/2018) is passed correctly, but as soon as you want to use it as a date to compare with the current date, you can not.
Strangely not “18.05.2018” used, but “#_ATT{deadline}” as text – so no date comparison can work.I did not change a shortcode, but I had the last plugin updates.
Up to version 5.8.1.1 it worked without problems.
Thanks a lot in advance
The topic ‘Custom date field can not be used for date comparison’ is closed to new replies.