I made an event system with a custom-post. I use ACF classic.
I therefore display my posts only if they are equal to today’s date or in the future. All old posts are therefore hidden. This all works very well.
Problem is that when the year is 2024, everything beyond December 31, 2023 is considered old… I know this because when I change my value from ($date_event >= $today) to ($date_event <= $today) it displays it to me in my old posts..