the answer for all question about Oxygen Builder plugin and WordPress

ACF question. I have made a date picker field for event posts and when I go to p

ACF question. I have made a date picker field for event posts and when I go to place the date inside the repeater I can’t seem to work out a working solution to format and output the date. This is what i have currently but it only returns 01 Jan which is not the date set on the post.

Current code / concept

<?php $date = get_field(‘Date‘);
$date2 = date(“d M”, strtotime($date)); ?>

<?php echo $date2; ?>



Source

1 Comment
  1. Esta Schoeman says

    Can you not set it in the return format of the custom field? If that doesn’t work, you can set it after you inserted the custom field (date). After selecting the field, you get an option to set the format

Leave A Reply

Your email address will not be published.

Oxyrealm Docs