I need help to display a simple message when one of my seminars ends. I have something like "This seminar has ended" in mind, but can't figure out the right formats. I'm using wordpress and the Advanced Custom Fields (ACF) plugin for custom fields:
Code:
<?php
$today = date('Ymd');
$sem_date = get_field('sem_date'); // Output format d / m / y (has to be this format on the site)
if($today > $sem_date){ ?>
<div class="oops">
This seminar has ended!
</div>
<?php } ?>