Skip Navigation

[Résolu] Post Date field doesn’t output date format according to Site Language setting.

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
Post Date field doesn't output date format according to Site Language setting.

Solution:
This issue is known to us. The simple workaround to this is, instead of using single field block, you should try to add "Fields and Text" block and then within the fields and text block you should try to add the shortcode to display the post date. For example:

[wpv-post-date format="F j Y"]

Relevant Documentation:

This support ticket is created Il y a 2 années et 6 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

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

Dernière mise à jour par diyanK Il y a 2 années et 6 mois.

Assisté par: Minesh.

Auteur
Publications
#2376207

Hi team,

I noticed that the Post Date field output doesn't return proper output according to the Site Language WordPress setting.

I believe all Toolset field outputs should output according to this setting, including front-end forms.

Currently I'm building a Timeline Archive view that includes the Post Date, however I would like to output the Month Name according to the Site Language, instead of a 1-12 number.

Any ideas how to fix this (using Toolset Blocks to build my Archive template)?

Thanks!
D.

#2376397

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

This issue is known to us and already reported as internal ticket. We will try to fix it but there is no ETA on it.

The simple workaround to this is, instead of using single field block, you should try to add "Fields and Text" block and then within the fields and text block you should try to add the shortcode to display the post date. For example:

[wpv-post-date format="F j Y"]

This should help you to fix this issue.

#2377991

That worked like a charm! Thank you!