Support

Account

Home Forums Front-end Issues Custom loop with different outputted dates

Unread

Custom loop with different outputted dates

  • I have a loop of events and want to output each one specifically;

    Usual output: 21/06/2018

    How I got it to output: June <br> 21 <br> Saturday

    Using the following code;

    $date = get_field('event_date');
    $date = new DateTime($date);  
    
    <?php echo $date->format('F'); ?>

    Which is working but for some reason outputting only the last event date added and not each one separately.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.