Trying to build a simple event calendar for a band theme. Just wondering if there’s a simple way to achieve this. I’m trying to make it as simple as possible, so I was trying to avoid using a free, or premium plugin.
Something I can style similar to this:
Screenshot
Edit:
<span class="show_day">
<?php $date = new DateTime(get_field('show_date'));
echo $date->format('d'); ?></span>
<span class="show_month"><?php $date = new DateTime(get_field('show_date'));
echo $date->format('F'); ?></span>
Is there a better way to do this?
I did it this way:
Have a look at function.date and datetime.format.