Skip Navigation

[Resolved] Translated date formats

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: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by blueS-2 3 years, 11 months ago.

Assisted by: Waqar.

Author
Posts
#2101593

Hello
I need help with 4 things in views/archives/content templates using blocks.

The site is being developed but publicly accessible, uses the latest versions of toolset, wordpress, woocommerce, relevanssi and kadence theme and blocks. It's a corporate site, with a services catalog (ask for price/information), static pages (about us, governance, why us,...), news (2500 blog posts) and an area for more insightful posts (a cpt made with types), plus some extra cpt's for specific information (old projects, press releases, customers). Site is in portuguese (pt-pt).

3) Localized date in content templates and archives: post date in content templates and archives shows up in english, although when using the default theme post & archives is correctly in portuguese. Tried the shortcode [wpv-post-date format="j de F, Y"] to show the date in the same way wordpress is configured, but the escape codes of "de" don't seem to work. Saw in a forum post that the unlocalized date format was a bug to be fixed. My question is if it has already been fixed or what are the correct escape codes to use inside the shortcode (can't find it in shortcode reference).

Thanks in advance and best regards
Alex

#2101961

Hi Alex,

If your goal is to show the localized post date based on the format selected in the WordPress settings, you can use the "wpv-post-date" shortcode without the "format" attribute:
( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-date )


[wpv-post-date]

I hope this helps and let me know how it goes.

regards,
Waqar

#2101977

Hello Waqar
Thank you for your reply, it worked 🙂

My issue is resolved now. Thank you!

Best regards
Alex