Dynamic Content date settings

Hi, I would like to change the date output of a dynamic content. To be specific, I’m using ACF to generate a date field which I use in a headline sub text like this: {{dc:post:meta key=“datum” format=“l j F Y”}}. But that doesn’t change the date output. Is this even possible? Right now it gets output like Y F j, which is not like my wordpress settings.

Hi @arnoldmeulenbeld,

Thanks for reaching out. If you’re using the latest version we just released today this is now possible by specifying a type when retrieving post meta. Try this variation:

{{dc:post:meta key="datum" type="date" "format=“l j F Y"}}

The issue is that post meta is just stored as raw text and when it’s pulled out we don’t have any indication of what type of data that is. You can also do type="time" and use a time format. The only difference between the two is that if you don’t specify format it will use the default date or time format configured with your WordPress installation.

2 Likes

Thank you so much for your quick reply. I’ll download 4.0 shortly!

Hi @arnoldmeulenbeld,

You’re welcome and it’s our pleasure to help you. If you have any other concerns regarding our theme features, feel free to reach us.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.