Skip Navigation

[Resuelto] Displaying ACF Date Picker and Time Picker fields

This support ticket is created hace 3 años, 9 meses. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 respuestas, has 2 mensajes.

Last updated by Craig hace 3 años, 9 meses.

Assisted by: Minesh.

Autor
Mensajes
#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: Inglés (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!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.