• Hello,

    We’ve got an ACF 5.0 Date Time Picker field that we’re trying to render inside of a loop:

    [if field=session_start_date_time value=] - [field session_start_date_time][/if][if field=session_end_date_time value=] to [field session_end_date_time][/if]

    We’ve got the field formatted in ACF as it should be, but when rendering on the page we get back:

    1509525000 to 1509525900

    What do we need to do to ensure that the output is properly formatted?

    Thanks

Viewing 1 replies (of 1 total)
  • You need to add the date_format variable to your shortcode. Try the following and replace the date format to one that suits your needs.

    [if field=session_start_date_time value=] – [field session_start_date_time date_format=”F j, Y”][/if][if field=session_end_date_time value=] to [field session_end_date_time date_format=”F j, Y”][/if]

Viewing 1 replies (of 1 total)
  • The topic ‘ACF Date/Time Field Renders Without Format’ is closed to new replies.