Skip Navigation

[Resolved] Displaying ACF Date Picker and Time Picker fields

This support ticket is created 4 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Craig 4 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#1661385

Hi there,

I am trying to display the Date Picker and Time Picker fields in a Toolset View, but what is being returned bears no resemblance to the requested return format set in ACF.

The Date Picker is returning — 20200712 (ACF Return Value "d F")
The Time Picker is returning — 10:00:00 (ACF Return Value "g:ia")

The code I have in my Toolset View is:-

[wpv-post-field name='virtual_event_date'] – [wpv-post-field name="virtual_event_start_time"]

I hope you can help.

Best,
Craig

#1662697

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What if you try to use acf shortcode:

For example:

[acf field="virtual_event_date"]
[acf field="virtual_event_start_time"]

Does that help?

More info:
=> hidden link

#1662845

Hi Minesh,

Thank you very much for that. I don’t know why I didn't try those shortcodes.

I did try with:

 [acf field="{$virtual_event_date}"] – [acf field="{$virtual_event_start_time}"]

…but that was obviously only for use within <php>.

Thanks again. You are a star!

Kind regards,
Craig

#1662847

My issue is resolved now. Thank you!