Passer la navigation

[Résolu] Format date in a table column

This support ticket is created Il y a 4 years, 7 months. 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Fuseau horaire du supporter : America/Jamaica (GMT-05:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par junev Il y a 4 years, 6 months.

Assisté par: Shane.

Auteur
Publications
#2206717
Screenshot 2021-10-27 at 11.07.33.png
Screenshot 2021-10-27 at 11.08.20.png

Tell us what you are trying to do?

I have a table in which I'd like to have a column showing a custom field with the field type "Date". But all it does in the table is show a string of numbers. Please see attached screenshot.

Is there any documentation that you are following?
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-date

Is there a similar example that we can see?
lien caché

What is the link to your site?
lien caché

The shortcode for the table you see in lien caché looks like this:
[posts_table post_type="veranstaltung" columns="image:Bild,title:Veranstaltung,cf:wpcf-subheading:Typ,excerpt:Beschreibung,cf:wpcf-date:Datum" format="j. F Y" excerpt_length="20" widths="auto,150px,auto,auto,130px"]

Please advise,
June

#2207145

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi June,

Thank you for getting in touch.

Based on what i'm seeing here you're receiving the post data using the shortcode [posts_table] unfortunately it doesn't appear that this shortcode can format the date into a human readable format.

You may need to contact the developers of this shortcode for them to provide a solution for this given that you're using their shortcode.

Thanks,
Shane

#2207629

My issue is resolved now. Thank you!