Thanks for testing it out.
I believe the issue is because the
$event_date variable is formatted but the
$today variable is in timestamp format. That makes the comparison failed. Could you please try the following code?
$event_date = get_sub_field('event_date', false, false); $event_date = strtotime($event_date);
If that doesn’t work, could you please open a new ticket and provide temporary admin credentials to your site? You can open a new ticket here: https://support.advancedcustomfields.com/new-ticket. Also, please don’t forget to explain the issue again and provide the link to this thread.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.