Skip Navigation

[Resolved] Single Field with Post Date: How to localize?

This thread is resolved. Here is a description of the problem and solution.

Problem:
The user uses a single field block to display the post date, the date is not localized in the site's language.

Solution:
This is a bug that will be fixed in upcoming releases. As a workaround use a shortcode instead of the block.

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

Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/

This support ticket is created 3 years, 11 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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

This topic contains 4 replies, has 2 voices.

Last updated by matthiasK-3 3 years, 11 months ago.

Assisted by: Jamal.

Author
Posts
#1915339
screenshot2.jpg

In a view I'm using a Single Field block to display the date of a post. I'm using the custom format "j. F Y", which shows the months in English. However the site is set to German and I would like to see the months in German.

What to do?

#1915735

Hello Matthias and thank you for contacting the Toolset support.

Would you like to reproduce this issue in a minimal way on one of our websites? As soon as you do, I'll check it and see how to fix it or how to work around it. If I confirm that it is a bug, I'll escalate it to our developers and I'll try to provide a workaround for it.

You can login to a test site that has all the required plugins installed with this URL hidden link

Thank you for your collaboration.

#1915803
screenshot3.jpg

Hi Jamal,

I could replicate the problem at the test site. Please take a look to hidden link.
As you can see there the post date is in English, the month in the Archive widget in the footer is in German.

Looking forward to your answer.
Matthias

#1916023

Thank you Matthias,

I'll escalate the issue to our developers. As a workaround, use a shortcode instead of the date field.

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

It worked in the test site as you can see on this screenshot hidden link

#1916351

For the time being I can live with this workaround. Thanks!