Archived topic
Change Date Format – Showing Dynamic ACF Post Meta
3 replies · Started by Pete on February 10, 2022
I've seen some similar posts on this topic – but none that seem to have the answer I'm looking for.
I wish to display dynamic data in blocks on two types of pages, which will be post_meta populated by ACF date picker fields. Examples can be found on the following pages:
- https://new.boroguide.co.uk/managers/graham-westley/
- https://new.boroguide.co.uk/players/michael-bostwick/
The date format on the 'manager' page is outputted as YYYYMMDD, while the format on the 'player' page YYYY-MM-DD. I've absolutely no idea why the two formats are different here. But, in both instances, I'd like the date to be shown as DD/MM/YYYY.
Can this be done with one function in the functions.php file?
Hi Pete,
The dynamic headline just outputs the value of the field, it doesn't adds format to the data.
I think it's a question for the plugin :)
So it is, should've clocked that Ying – thanks!
No problem :)